-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsWindow.xaml
69 lines (56 loc) · 4.12 KB
/
SettingsWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<Window x:Class="healthy_reminders.SettingsWindow"
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:healthy_reminders"
mc:Ignorable="d"
Title="Settings" Height="380" Width="350" Closed="Window_Closed" WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
</Grid.RowDefinitions>
<!-- Main section -->
<StackPanel Grid.Row="0">
<Label Content="Settings" HorizontalAlignment="Center" FontSize="20" FontFamily="Segoe UI Semibold" Margin="0,10,0,5"/>
<CheckBox x:Name="CheckTimersOnStart" Content="Start timers on app starting" Margin="20,0,20,5"/>
<CheckBox x:Name="CheckMinimizedOnStart" Content="Start app minimized and hidden" Margin="20,0,20,5"/>
<Grid Margin="20,10,20,0">
<Grid.RowDefinitions>
<RowDefinition Height="27"></RowDefinition>
<RowDefinition Height="27"></RowDefinition>
<RowDefinition Height="27"></RowDefinition>
<RowDefinition Height="27"></RowDefinition>
<RowDefinition Height="27"></RowDefinition>
<RowDefinition Height="27"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.ColumnSpan="2" Content="Edition of timers duration (in seconds)" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
<Label Grid.Row="1" Grid.Column="0" Content=""Eye care" delay (default 1200):" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBox x:Name="InputDelayEyeCare" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" VerticalAlignment="Center"/>
<Label Grid.Row="2" Grid.Column="0" Content=""Eye care" event (default 20):" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBox x:Name="InputEventEyeCare" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" VerticalAlignment="Center"/>
<Label Grid.Row="3" Grid.Column="0" Content=""Posture health" delay (default 1800):" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBox x:Name="InputDelayPostureHealth" Grid.Row="3" Grid.Column="1" TextWrapping="Wrap" VerticalAlignment="Center"/>
<Label Grid.Row="4" Grid.Column="0" Content=""Physical activity" delay (default 3600):" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBox x:Name="InputDelayPhysicalActivity" Grid.Row="4" Grid.Column="1" TextWrapping="Wrap" VerticalAlignment="Center"/>
<Label Grid.Row="5" Grid.Column="0" Content=""Physical activity" event (default 300):" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBox x:Name="InputEventPhysicalActivity" Grid.Row="5" Grid.Column="1" TextWrapping="Wrap" VerticalAlignment="Center"/>
</Grid>
</StackPanel>
<!-- Bottom tools -->
<Grid Grid.Row="1" Margin="20,0,20,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="BtnCancel" Content="Cancel" Grid.Column="0" Width="80" VerticalAlignment="Top" Click="BtnCancel_Click"/>
<Button x:Name="BtnSave" Content="Save" Grid.Column="2" Width="80" VerticalAlignment="Top" Click="BtnSave_Click"/>
</Grid>
</Grid>
</Window>