终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

62 řádky
2.6 KiB

  1. <Window x:Class="SCADA.Test.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. WindowState="Maximized"
  7. WindowStartupLocation="CenterScreen"
  8. xmlns:local="clr-namespace:SCADA.Test"
  9. mc:Ignorable="d"
  10. Title="MainWindow" Height="450" Width="800">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition/>
  14. <ColumnDefinition Width="200"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="40"/>
  18. <RowDefinition/>
  19. </Grid.RowDefinitions>
  20. <Button Click="Button_Click">加载文件</Button>
  21. <local:RunCanvas Grid.Row="1" x:Name="runCanvas"/>
  22. <Grid Grid.Column="1" Grid.RowSpan="2">
  23. <Border BorderBrush="AntiqueWhite" BorderThickness="3">
  24. <StackPanel>
  25. <TextBlock Margin="10,0,0,10" FontSize="24" HorizontalAlignment="Center">运行消息发送</TextBlock>
  26. <TextBlock Margin="10,0,0,10" FontSize="16">消息名称</TextBlock>
  27. <ComboBox x:Name="mlname"></ComboBox>
  28. <TextBlock Margin="10,0,0,10" FontSize="16">号</TextBlock>
  29. <TextBox x:Name="hm">1</TextBox>
  30. <TextBlock Margin="10,0,0,10" FontSize="16">消息</TextBlock>
  31. <ComboBox x:Name="xx"></ComboBox>
  32. <Button Margin="10,10,0,10" Width="100" Height="40" Click="Button_Click_1">发送</Button>
  33. <TextBlock Margin="10,0,0,10" FontSize="24" HorizontalAlignment="Center">数据发送</TextBlock>
  34. <TextBlock Margin="10,0,0,10" FontSize="16">消息名称</TextBlock>
  35. <ComboBox x:Name="xxnc"></ComboBox>
  36. <TextBlock Margin="10,0,0,10" FontSize="16">仓号</TextBlock>
  37. <TextBox x:Name="ch">1</TextBox>
  38. <TextBlock Margin="10,0,0,10" FontSize="16">标题</TextBlock>
  39. <TextBox x:Name="bt">标题</TextBox>
  40. <TextBlock Margin="10,0,0,10" FontSize="16">重量</TextBlock>
  41. <TextBox x:Name="zl">35.23</TextBox>
  42. <Button Margin="10,10,0,10" Width="100" Height="40" Click="Button_Click_2" >发送</Button>
  43. </StackPanel>
  44. </Border>
  45. </Grid>
  46. </Grid>
  47. </Window>