-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddcom.xaml
37 lines (37 loc) · 2.49 KB
/
Addcom.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
<Window x:Class="MQTT.Addcom"
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:MQTT"
mc:Ignorable="d"
Title="Addcom" Height="1080" Width="1920">
<Grid>
<Grid Background="#FFFF" Margin="28,0,28,8" VerticalAlignment="Bottom">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="確定新增" FontSize="35" Height="65" Click="Button_Click"/>
<Button Grid.Column="1" Content="放棄資料" FontSize="35" Height="65" Click="Button_Click_1"/>
</Grid>
<Grid Background="#FFFF" Margin="28,47,28,0" VerticalAlignment="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="部門名稱:" FontSize="35" Height="65"/>
<TextBox x:Name="txtname" Grid.Column="1" FontSize="35" Height="65"/>
<Label Grid.Column="2" Content="部門代號:" FontSize="35" Height="65"/>
<TextBox x:Name="txtid" Grid.Column="3" FontSize="35" Height="65"/>
</Grid>
<Label Content="部門電話:" HorizontalAlignment="Left" Margin="30,125,0,0" VerticalAlignment="Top" FontSize="35"/>
<TextBox x:Name="txtphone" HorizontalAlignment="Left" Margin="188,125,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="400" FontSize="35" Height="65" MaxLength="11"/>
<Label Content="備 註:" HorizontalAlignment="Left" Margin="24,0,0,413" FontSize="35" Width="158" Height="65" VerticalAlignment="Bottom"/>
<TextBox Margin="187,275,28,100" TextWrapping="Wrap" FontSize="24"/>
<Label Content="部門地址:" HorizontalAlignment="Left" Margin="29,200,0,0" VerticalAlignment="Top" FontSize="35"/>
<TextBox x:Name="txtaddress" Margin="187,197,28,0" TextWrapping="Wrap" FontSize="35" Height="65" VerticalAlignment="Top"/>
</Grid>
</Window>