12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <Window x:Class="EapClientSimulator.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:EapClientSimulator"
- mc:Ignorable="d"
- Title="MainWindow" Height="750" Width="900" WindowState="Normal" WindowStartupLocation="CenterScreen">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="80"></RowDefinition>
- <RowDefinition Height="110"></RowDefinition>
- <RowDefinition Height="110"></RowDefinition>
- <RowDefinition Height="110"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="550"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <GroupBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Header="data">
- <Grid>
- <Label Content="Ip:" HorizontalAlignment="Left" Margin="97,0,0,0" VerticalAlignment="Center"/>
- <TextBox Name="txtIp" HorizontalAlignment="Left" Margin="121,0,0,0" TextWrapping="Wrap" Text="127.0.0.1" VerticalAlignment="Center" Width="120"/>
- <Label Content="端口号:" HorizontalAlignment="Left" Margin="250,0,0,0" VerticalAlignment="Center"/>
- <TextBox x:Name="txtPort" HorizontalAlignment="Left" Margin="304,0,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Center" Width="60"/>
- <Button HorizontalAlignment="Left" Margin="400,0,0,0" VerticalAlignment="Center" Name="btnConnect" Content="连接" Click="btnConnect_Click" Width="60"/>
- <Button HorizontalAlignment="Left" Margin="475,0,0,0" VerticalAlignment="Center" x:Name="btnDisConnect" Content="断开" Click="btnDisConnect_Click" Width="60" IsEnabled="False"/>
- </Grid>
- </GroupBox>
- <GroupBox Header="Lp1" Grid.Row="1" Grid.Column="0" Name="gp1" IsEnabled="False">
- <local:ULpControl x:Name="lp1"></local:ULpControl>
- </GroupBox>
- <GroupBox Header="Lp2" Grid.Row="2" Grid.Column="0" Name="gp2" IsEnabled="False">
- <local:ULpControl x:Name="lp2"></local:ULpControl>
- </GroupBox>
- <GroupBox Header="Lp3" Grid.Row="3" Grid.Column="0" Name="gp3" IsEnabled="False">
- <local:ULpControl x:Name="lp3"></local:ULpControl>
- </GroupBox>
- <GroupBox Header="Report" Grid.Column="0" Grid.Row="4" IsEnabled="False" Name="gp4">
- <local:UReport x:Name="ureport"></local:UReport>
- </GroupBox>
- <GroupBox Header="link" Grid.Column="0" Grid.Row="5" IsEnabled="False" Name="gp5">
- <local:UEventReport x:Name="ueventReport"></local:UEventReport>
- </GroupBox>
- <GroupBox Header="event" Grid.Column="0" Grid.Row="6" IsEnabled="False" Name="gp6">
- <local:UEvent x:Name="uevent"></local:UEvent>
- </GroupBox>
- <GroupBox Header="alram" Grid.Column="0" Grid.Row="7" IsEnabled="False" Name="gp7">
- <local:UAlarm x:Name="ualarm"></local:UAlarm>
- </GroupBox>
- <GroupBox Header="sv" Grid.Column="0" Grid.Row="8" IsEnabled="False" Name="gp8">
- <local:UStatusVariable x:Name="ustatus"></local:UStatusVariable>
- </GroupBox>
- <GroupBox Name="gp10" Header="Received Data" Grid.Row="0" Grid.Column="1" Grid.RowSpan="10">
- <ListBox Name="lstReceivedData"></ListBox>
- </GroupBox>
- </Grid>
- </Window>
|