initial
This commit is contained in:
43
MainWindow.xaml
Normal file
43
MainWindow.xaml
Normal file
@@ -0,0 +1,43 @@
|
||||
<Window x:Class="Bedtimer.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="Bedtimer Settings" Width="380" Height="260" ResizeMode="NoResize"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
<Grid Margin="16">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
||||
<TextBlock Text="Bedtime:" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<ComboBox x:Name="BedHour" Width="60"/>
|
||||
<TextBlock Text=":" VerticalAlignment="Center" Margin="4,0"/>
|
||||
<ComboBox x:Name="BedMinute" Width="60"/>
|
||||
<ComboBox x:Name="AmPm" Width="70" Margin="8,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,0,0,8">
|
||||
<TextBlock Text="Warn lead (min):" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<TextBox x:Name="WarnLead" Width="80"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,8">
|
||||
<TextBlock Text="Flash lead (min):" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<TextBox x:Name="FlashLead" Width="80"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="3" Margin="0,0,0,8">
|
||||
<TextBlock Text="Lock delay (min after bedtime):" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<TextBox x:Name="LockDelay" Width="80"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="4" HorizontalAlignment="Right">
|
||||
<Button Content="Save" Width="100" Margin="0,0,8,0" Click="Save_Click"/>
|
||||
<Button Content="Close" Width="100" Click="Close_Click"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user