|
- <Window x:Class="SCADA.Test.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"
- WindowState="Maximized"
- WindowStartupLocation="CenterScreen"
- xmlns:local="clr-namespace:SCADA.Test"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="200"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Button Click="Button_Click">加载文件</Button>
-
- <local:RunCanvas Grid.Row="1" x:Name="runCanvas"/>
-
- <Grid Grid.Column="1" Grid.RowSpan="2">
-
- <Border BorderBrush="AntiqueWhite" BorderThickness="3">
- <StackPanel>
- <TextBlock Margin="10,0,0,10" FontSize="24" HorizontalAlignment="Center">运行消息发送</TextBlock>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">消息名称</TextBlock>
- <ComboBox x:Name="mlname"></ComboBox>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">号</TextBlock>
- <TextBox x:Name="hm">1</TextBox>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">消息</TextBlock>
- <ComboBox x:Name="xx"></ComboBox>
-
- <Button Margin="10,10,0,10" Width="100" Height="40" Click="Button_Click_1">发送</Button>
-
-
- <TextBlock Margin="10,0,0,10" FontSize="24" HorizontalAlignment="Center">数据发送</TextBlock>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">消息名称</TextBlock>
- <ComboBox x:Name="xxnc"></ComboBox>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">仓号</TextBlock>
- <TextBox x:Name="ch">1</TextBox>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">标题</TextBlock>
- <TextBox x:Name="bt">标题</TextBox>
-
- <TextBlock Margin="10,0,0,10" FontSize="16">重量</TextBlock>
- <TextBox x:Name="zl">35.23</TextBox>
-
- <Button Margin="10,10,0,10" Width="100" Height="40" Click="Button_Click_2" >发送</Button>
- </StackPanel>
- </Border>
- </Grid>
- </Grid>
- </Window>
|