-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
79 lines (77 loc) · 4.75 KB
/
MainWindow.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
70
71
72
73
74
75
76
77
78
79
<Window x:Class="TimeManager.MainWindow"
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:TimeManager"
mc:Ignorable="d"
Title="TimeManager" Height="170" MaxHeight="170" MinHeight="170" Width="760" MaxWidth="760" MinWidth="760"
Loaded="Window_Loaded" Closing="Window_Closing" Icon="{StaticResource HeaderImage}">
<Grid Height="auto" Width="auto">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="7*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="3*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel x:Name="futionStack" Orientation="Horizontal" Width="Auto" VerticalAlignment="Center"
HorizontalAlignment="Center" Grid.Column="0" Grid.Row="0">
<Button x:Name="Start" Margin="10, 0, 10, 0"
Click="Start_Click" Width="25" Height="25">
<Image Source="{StaticResource play}"/>
</Button>
<Button x:Name="Pause" Margin="10, 0, 10, 0" Click="Pause_Click"
Width="25" Height="25">
<Image Source="{StaticResource pause}" />
</Button>
<Button x:Name="Stop" Margin="10, 0, 10, 0" Click="Stop_Click"
Width="25" Height="25">
<Image Source="{StaticResource stop}"/>
</Button>
</StackPanel>
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" >
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Content="本次运行:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="0"
Grid.Column="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14"/>
<Label x:Name="NowTime" Content="0000:00:00" HorizontalAlignment="Left" Margin="1"
VerticalAlignment="Center" Grid.Row="0" Grid.Column="1" FontSize="14"/>
<Label Content="总时间:" HorizontalAlignment="Right" Margin="1" VerticalAlignment="Center"
Grid.Row="1" Grid.Column="0" FontSize="14"/>
<Label x:Name="CountTime" Content="0000:00:00" HorizontalAlignment="Left" Margin="1"
VerticalAlignment="Top" Grid.Row="1" Grid.Column="1" FontSize="14"/>
<Label Content="打卡次数:" Grid.Row="2" Grid.Column="0" FontSize="14" HorizontalAlignment="Right"
VerticalAlignment="Center" HorizontalContentAlignment="Center"
VerticalContentAlignment="Center" />
<Label x:Name="Times" Content="0" Margin="1" Grid.Row="2" Grid.Column="1"/>
</Grid>
<StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center"
VerticalAlignment="Center">
<Label Content="项目名称:" Margin="3, 0, 3, 0" FlowDirection="LeftToRight" Padding="0,0,0,0"
Height="16" FontSize="14"/>
<ComboBox x:Name="ProjectListComboBox" Margin="3, 0, 3, 0" Width="161" Height="22" FontSize="14"
DisplayMemberPath="Name" SelectionChanged="ProjectListComboBox_SelectionChanged"/>
</StackPanel>
</Grid>
<StackPanel x:Name="ProjectStack" Orientation="Vertical" HorizontalAlignment="Center"
VerticalAlignment="Center" Width="75" Height="Auto">
<Button x:Name="NewProject" Margin="0, 10, 0, 10" Content="新建项目" Click="NewProject_Click" FontSize="14"/>
<Button x:Name="DeleteProject" Content="删除项目" Margin="0, 10, 0, 10" Click="DeleteProject_Click" FontSize="14"/>
<Button x:Name="ProjectListShowWin" Content="项目总览" Margin="0, 10, 0, 10" Click="ProjectList_Click" FontSize="14" Padding="1,1,1,1"/>
</StackPanel>
</Grid>
</Window>