-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Toumash/feature/sum-hours-since
Feature/sum hours since
- Loading branch information
Showing
12 changed files
with
183 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Window x:Class="DailyStatus.UI.View.DateTimeSincePrompt" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:DailyStatus.UI.View" | ||
mc:Ignorable="d" | ||
Title="{Binding WindowTitle}" Height="100" Width="468.22"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="33*"/> | ||
<ColumnDefinition Width="59*"/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="50*"/> | ||
<RowDefinition Height="50*"/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Text="{Binding WindowPrompt}" Grid.RowSpan="1" Grid.ColumnSpan="1" Grid.Column="0" FontSize="20"/> | ||
<DatePicker Name="DatePicker" HorizontalAlignment="Left" Margin="10,0,0,0" Grid.Row="0" Grid.Column="1" Width="275" /> | ||
<Button Content="OK" Click="OKButton_Click" Grid.RowSpan="1" Grid.Row="1" MaxHeight="30" Grid.ColumnSpan="2"/> | ||
|
||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace DailyStatus.UI.View | ||
{ | ||
public partial class DateTimeSincePrompt : Window, INotifyPropertyChanged | ||
{ | ||
private string _windowTitle; | ||
private string _windowPrompt; | ||
|
||
public DateTimeSincePrompt() | ||
{ | ||
InitializeComponent(); | ||
DataContext = this; | ||
} | ||
|
||
public string WindowTitle | ||
{ | ||
get { return _windowTitle; } | ||
set | ||
{ | ||
_windowTitle = value; | ||
NotifyPropertyChanged(nameof(WindowTitle)); | ||
} | ||
} | ||
public string WindowPrompt | ||
{ | ||
get { return _windowPrompt; } | ||
set | ||
{ | ||
_windowPrompt = value; | ||
NotifyPropertyChanged(nameof(WindowPrompt)); | ||
} | ||
} | ||
|
||
public DateTime? Date | ||
{ | ||
get | ||
{ | ||
return DatePicker.SelectedDate; | ||
} | ||
set | ||
{ | ||
DatePicker.SelectedDate = value; | ||
} | ||
} | ||
|
||
private void OKButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
DialogResult = true; | ||
} | ||
|
||
public event PropertyChangedEventHandler PropertyChanged; | ||
void NotifyPropertyChanged(string propertyName) | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters