-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
256 lines (200 loc) · 14.9 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<Window x:Class="班级点名器.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:班级点名器"
mc:Ignorable="d"
Title="点名器" Height="450" Width="800"
Loaded="Window_Loaded" Background="#FFE2E2E2" BorderBrush="#FF929292" Name="Window" >
<Viewbox>
<Grid>
<!--标签页控件-->
<TabControl Margin="0,0,0,0" Background="White" BorderBrush="#FFD2D2D2" >
<TabItem Header="点名" Margin="-2,0,0,0" Width="60" Height="24" HorizontalAlignment="Left">
<TabItem.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5,0,0,0"/>
</Style>
</TabItem.Resources>
<Grid Background="White" Margin="0,0,0,0" Width="760" Height="360">
<Grid.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0,0,8,8"/>
</Style>
</Grid.Resources>
<!--窗口一-->
<Button Content="开始点名" Name="start" Margin="0,250,0,0" Height="50" Width="150" Click="start_Click" IsEnabled="True"
FontSize="30" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" FontWeight="Heavy">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Effect>
<DropShadowEffect ShadowDepth="1" BlurRadius="2.5" Color="#FFB9B9B9"/>
</Button.Effect>
</Button>
<Label Name="Name" Margin="150,100,150,150" FontSize="72" HorizontalAlignment="Center" FontWeight="ExtraBlack">点名加载中</Label>
<Label Name="File" Margin="100,0,0,0" FontSize="10" HorizontalAlignment="Left" Width="660" Height="30" VerticalAlignment="Top">路径未设定</Label>
<Button Content="查看名单" Name="view" Margin="310,285,-10,0" Height="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Top" Click="View_Click"
FontSize="16" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<Label Name="VersionShow" Margin="0,0,10,0" Height="25" Width="60" HorizontalAlignment="Right" VerticalAlignment="Top" Loaded="GetVersion" Foreground="DarkGray" >未知版本</Label>
</Grid>
</TabItem>
<TabItem Header="批量点名" Margin="-2,0,0,0" Width="60" Height="24" HorizontalAlignment="Left">
<TabItem.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0,0,0,0"/>
</Style>
</TabItem.Resources>
<Grid Background="White" Margin="0,0,0,0" Width="760" Height="360">
<Grid.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0,0,8,8"/>
</Style>
</Grid.Resources>
<!--窗口二-->
<ScrollViewer HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Left" Margin="0,0,30,0" VerticalAlignment="Center" Width="200" Height="357">
<StackPanel Name="LuckyNameRoll" VerticalAlignment="Top" HorizontalAlignment="Left" Width="183" Height="357">
<TextBox Name="LuckyName" Height="16" FontSize="15" IsReadOnly="True"></TextBox>
<Separator/>
<Rectangle Fill="WhiteSmoke" Width="500" Height="500"></Rectangle>
</StackPanel>
</ScrollViewer>
<Button Content="开始点名" Name="start_2" Margin="0,250,100,0" Height="50" Width="150" Click="start_MoreName_Click" IsEnabled="True"
FontSize="30" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" FontWeight="Heavy" HorizontalAlignment="Right">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Effect>
<DropShadowEffect ShadowDepth="1" BlurRadius="2.5" Color="#FFB9B9B9"/>
</Button.Effect>
</Button>
<TextBox x:Name="NameNumIn" HorizontalAlignment="Right" Margin="0,50,20,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="300" Height="20"
FontSize="12" FontFamily="微软雅黑" Background="#19000000" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<TextBox.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</TextBox.Resources>
</TextBox>
<Label Content="设定点名数量:" HorizontalAlignment="Right" Margin="0,30,230,0" VerticalAlignment="Top"/>
<Button Content="3个" Margin="0,80,270,0" Height="30" Width="30" HorizontalAlignment="Right" VerticalAlignment="Top" Click="NameNum_3_Click"
FontSize="12" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<Button Content="5个" Margin="0,80,230,0" Height="30" Width="30" HorizontalAlignment="Right" VerticalAlignment="Top" Click="NameNum_5_Click"
FontSize="12" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<Button Content="8个" Margin="0,80,190,0" Height="30" Width="30" HorizontalAlignment="Right" VerticalAlignment="Top" Click="NameNum_8_Click"
FontSize="12" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<Button Content="10个" Margin="0,80,150,0" Height="30" Width="30" HorizontalAlignment="Right" VerticalAlignment="Top" Click="NameNum_10_Click"
FontSize="12" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<Button Content="15个" Margin="0,80,110,0" Height="30" Width="30" HorizontalAlignment="Right" VerticalAlignment="Top" Click="NameNum_15_Click"
FontSize="12" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="6"/>
</Style>
</Button.Resources>
</Button>
<CheckBox Name="reName" Content="允许重复" HorizontalAlignment="Right" Margin="0,0,230,200" VerticalAlignment="Bottom" Background="#FFE0E0E0"
FontSize="13" FontFamily="微软雅黑" BorderThickness="1" Padding="0" IsChecked="False"/>
</Grid>
</TabItem>
<TabItem Header="点名设置" Margin="-2,0,0,0" Width="60" Height="24" HorizontalAlignment="Left">
<TabItem.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0,5,0,0"/>
</Style>
</TabItem.Resources>
<Grid Background="White" Margin="0,0,0,0" Width="760" Height="360">
<Grid.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="0,0,8,8"/>
</Style>
</Grid.Resources>
<Label Margin="75,16,0,0" Height="30" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" Content="txt名单路径:"
FontFamily="微软雅黑" FontSize="13" Background="#19000000" BorderThickness="2" BorderBrush="#BFC1C1C1">
<Label.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8,8,0,0"/>
</Style>
</Label.Resources>
</Label>
<TextBox x:Name="NamePath" HorizontalAlignment="Left" Margin="70,45,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="517" Height="20"
FontSize="12" FontFamily="微软雅黑" Background="#19000000" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<TextBox.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</TextBox.Resources>
</TextBox>
<Button Content="浏览......" HorizontalAlignment="Right" Margin="0,45,120,0" VerticalAlignment="Top" Width="50" Height="20" Click="GetPathButton_Click"
FontSize="10" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Button.Resources>
</Button>
<Button Content="查看帮助" HorizontalAlignment="Right" Margin="0,45,55,0" VerticalAlignment="Top" Width="60" Height="20" Click="TipsButton_Click"
FontSize="10" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Button.Resources>
</Button>
<Button Content="设定" HorizontalAlignment="Right" Margin="0,70,55,0" VerticalAlignment="Top" Width="114" Height="30" Click="SetButton_Click"
FontSize="16" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Button.Resources>
</Button>
<Button Content="更多信息" HorizontalAlignment="Right" Margin="0,0,50,28" VerticalAlignment="Bottom" Width="114" Height="35" Click="InfoButton_Click"
FontSize="16" FontFamily="微软雅黑" Background="#FFE0E0E0" BorderThickness="2" Padding="0" Foreground="Black" BorderBrush="#BFC1C1C1" >
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Button.Resources>
</Button>
</Grid>
</TabItem>
</TabControl>
</Grid>
</Viewbox>
</Window >