123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <Window x:Class="vStationManagementTool.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:vStationManagementTool"
- mc:Ignorable="d"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- Title="管理工具" Height="225" Width="400">
- <Grid >
- <Border Name="LoaderBorder" Visibility="Collapsed" Margin="0,0,0,0">
- <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="60">
- <StackPanel Orientation="Vertical">
- <Ellipse Width="25" Height="25" Stroke="{StaticResource DefaultButtonBackground}" StrokeThickness="4">
- <Ellipse.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard>
- <Storyboard RepeatBehavior="Forever">
- <DoubleAnimation Storyboard.TargetProperty="Opacity"
- From="1.0" To="0.1" Duration="0:0:1"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Ellipse.Triggers>
- </Ellipse>
- <TextBlock x:Name="ToolStatus" Text="繁忙中..." Margin="8,2,0,0" Foreground="{StaticResource DefaultButtonBackground}"/>
- </StackPanel>
- </Grid>
- </Border>
- <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="14.5"
- VerticalAlignment="Top" Text="服务地址:" />
- <TextBlock Margin="15,20,0,0" FontSize="14.5"
- Foreground="Red"
- x:Name="ServerIPAddress"
- VerticalAlignment="Top" Text="--.--.--.--" />
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock Margin="15,20,0,0" FontSize="14.5"
- VerticalAlignment="Top" Text="服务状态:" />
- <TextBlock Margin="15,20,0,0" FontSize="14.5"
- Foreground="Red"
-
- x:Name="ServerStatus"
- 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" Click="ServerControl_Click" Content="开启" />
- <Button x:Name="RestartServer"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" Margin="15,18,0,0" Content="重启" Click="RestartServer_Click" />
- </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" Click="SaveAddress_Click"
- VerticalAlignment="Top" Margin="15,18,0,0" Content="保存" Width="60" FontSize="14.5" Height="25"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|