You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.7 KiB
XML

<Window x:Class="SocketExample.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:SocketExample"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<StackPanel x:Name="InformationPanel" Margin="0,72,400,10" >
<TextBlock x:Name="InfoTextBlock" TextWrapping="Wrap" Text="" Height="352"/>
</StackPanel>
<StackPanel Margin="0,0,0,368" Orientation="Horizontal">
<Label Content="IP地址" Height="30" Margin="40 8 10 0"/>
<TextBox TextWrapping="Wrap" x:Name="IPtextbox" Text="127.0.0.1" Width="200" Height="30" Margin="0 8 10 0"/>
<Label Content="端口号" Height="30" Margin="40 8 10 0"/>
<TextBox TextWrapping="Wrap" Text="8999" x:Name="Porttextbox" Width="200" Height="30" Margin="0 8 10 0"/>
<Button Content="链接" Height="30" Margin="30 8 10 0" Click="Button_Click"/>
<Button Content="清空" Height="30" Margin="30 8 10 0" Click="Button_Click_Clear"/>
</StackPanel>
<StackPanel Margin="400,67,0,10">
<Button Content="创建客户端界面" Width="200" Click="Button_Click_Create"/>
<Button Content="读取文件信息" Width="200" Click="Button_Click_ReadFile" Margin="10 10 10 0"/>
<Button Content="读取数据库消息" Width="200" Click="Button_Click_ReadSql" Margin="10 10 10 0"/>
</StackPanel>
</Grid>
</Window>