12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <Window x:Class="vStationTool.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:vStationTool"
- mc:Ignorable="d"
-
- WindowStartupLocation="CenterScreen"
- Title="管理工具" Height="225" Width="400">
- <Grid>
- <Grid x:Name="ServerArea" Visibility="Collapsed">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <TextBlock Margin="15,20,0,0" FontSize="17"
- VerticalAlignment="Top" Text="服务地址:" />
- <TextBlock Margin="15,20,0,0" FontSize="17"
- Foreground="Green"
- VerticalAlignment="Top" Text="192.168.6.68" />
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock Margin="15,20,0,0" FontSize="17"
- VerticalAlignment="Top" Text="服务状态:" />
- <TextBlock Margin="15,20,0,0" FontSize="17"
- Foreground="Green"
- VerticalAlignment="Top" Text="已开启" />
- </StackPanel>
- <StackPanel Grid.Row="2">
- <Border BorderThickness="1" BorderBrush="Gray" Width="360" Height="1" />
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,0,0,10" >
- <Button x:Name="ServerControl"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" Margin="15,18,0,0" Content="开启" Width="60" FontSize="17" Height="25"/>
- <Button x:Name="RestartServer"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" Margin="15,18,0,0" Content="重启" Width="60" FontSize="17" Height="25"/>
- </StackPanel>
-
- </Grid>
- <Grid x:Name="ClientArea">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <TextBlock Margin="15,20,0,0" FontSize="17"
- VerticalAlignment="Top" Text="IP地址:" />
- <TextBox x:Name="ipAddress"
- Padding="1"
- FontSize="16"
- PreviewTextInput="ipAddress_PreviewTextInput" InputMethod.IsInputMethodEnabled="False" Height="25" Width="180"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock Margin="15,20,0,0" FontSize="17"
- VerticalAlignment="Top" Text="端口号:" />
- <TextBox x:Name="portNum" FontSize="16"
- Padding="1"
- PreviewTextInput="portNum_PreviewTextInput" InputMethod.IsInputMethodEnabled="False" Height="25" Width="80"/>
- </StackPanel>
- <StackPanel Grid.Row="2">
- <Border BorderThickness="1" BorderBrush="Gray" Width="360" Height="1" />
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,0,0,10" >
- <Button x:Name="SaveAddress"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" Margin="15,18,0,0" Content="保存" Width="60" FontSize="17" Height="25"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|