-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseConfigWindow.xaml
More file actions
38 lines (33 loc) · 1.88 KB
/
DatabaseConfigWindow.xaml
File metadata and controls
38 lines (33 loc) · 1.88 KB
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
<Window x:Class="SqlScriptRunner.DatabaseConfigWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="数据库配置" Height="250" Width="400"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
>
<Grid Margin="15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="服务器名称:" VerticalAlignment="Center"/>
<TextBox Grid.Row="0" Grid.Column="1" x:Name="txtServerName" Margin="0,5"/>
<TextBlock Grid.Row="1" Grid.Column="0" Text="数据库名称:" VerticalAlignment="Center"/>
<TextBox Grid.Row="1" Grid.Column="1" x:Name="txtDatabaseName" Margin="0,5"/>
<TextBlock Grid.Row="2" Grid.Column="0" Text="用户名:" VerticalAlignment="Center"/>
<TextBox Grid.Row="2" Grid.Column="1" x:Name="txtUsername" Margin="0,5"/>
<TextBlock Grid.Row="3" Grid.Column="0" Text="密码:" VerticalAlignment="Center"/>
<PasswordBox Grid.Row="3" Grid.Column="1" x:Name="txtPassword" Margin="0,5"/>
<StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="btnConnect" Content="连接" Width="80" Margin="0,0,10,0" Click="btnConnect_Click"/>
<Button x:Name="btnCancel" Content="取消" Width="80" Click="btnCancel_Click"/>
</StackPanel>
</Grid>
</Window>