|
| 1 | +<Window x:Class="MeowType.NetDebug.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 | + xmlns:local="clr-namespace:MeowType.NetDebug" |
| 7 | + mc:Ignorable="d" |
| 8 | + Title="Net Debug" Height="450" Width="800" MinHeight="450" MinWidth="800"> |
| 9 | + <Grid Margin="5"> |
| 10 | + <Grid.ColumnDefinitions> |
| 11 | + <ColumnDefinition MinWidth="200" Width="0.5*" MaxWidth="300"></ColumnDefinition> |
| 12 | + <ColumnDefinition Width="1*"></ColumnDefinition> |
| 13 | + </Grid.ColumnDefinitions> |
| 14 | + <Grid Grid.Column="0"> |
| 15 | + <TabControl> |
| 16 | + <TabItem Name="Tab_Tcp_Server" Header="Tcp Server"> |
| 17 | + <Grid Background="#FFE5E5E5"/> |
| 18 | + </TabItem> |
| 19 | + <TabItem Name="Tab_Tcp_Client" Header="Tcp Client"> |
| 20 | + <Grid Background="#FFE5E5E5"/> |
| 21 | + </TabItem> |
| 22 | + <TabItem Name="Tab_Udp" Header="Udp" IsSelected="True"> |
| 23 | + <Grid Margin="10,0"> |
| 24 | + <Grid.RowDefinitions> |
| 25 | + <RowDefinition Height="50"></RowDefinition> |
| 26 | + <RowDefinition Height="50"></RowDefinition> |
| 27 | + <RowDefinition Height="100"></RowDefinition> |
| 28 | + <RowDefinition Height="50"></RowDefinition> |
| 29 | + <RowDefinition Height="50"></RowDefinition> |
| 30 | + <RowDefinition Height="50"></RowDefinition> |
| 31 | + </Grid.RowDefinitions> |
| 32 | + <Grid Grid.Row="0"> |
| 33 | + <Grid.RowDefinitions> |
| 34 | + <RowDefinition Height="1*"></RowDefinition> |
| 35 | + <RowDefinition Height="1*"></RowDefinition> |
| 36 | + </Grid.RowDefinitions> |
| 37 | + <Label Grid.Row="0">Local IP</Label> |
| 38 | + <ComboBox Grid.Row="1" IsEditable="True" Name="UDP_Local_ip" SelectedIndex="0"> |
| 39 | + <Label ToolTip="127.0.0.1">localhost</Label> |
| 40 | + </ComboBox> |
| 41 | + </Grid> |
| 42 | + <Grid Grid.Row="1"> |
| 43 | + <Grid.RowDefinitions> |
| 44 | + <RowDefinition Height="1*"></RowDefinition> |
| 45 | + <RowDefinition Height="1*"></RowDefinition> |
| 46 | + </Grid.RowDefinitions> |
| 47 | + <Label Grid.Row="0">Local Port</Label> |
| 48 | + <TextBox Grid.Row="1" Name="UDP_Local_port">12345</TextBox> |
| 49 | + </Grid> |
| 50 | + <Grid Grid.Row="2" Margin="0,10"> |
| 51 | + <Grid.RowDefinitions> |
| 52 | + <RowDefinition Height="1*"></RowDefinition> |
| 53 | + <RowDefinition Height="1*"></RowDefinition> |
| 54 | + <RowDefinition Height="1*"></RowDefinition> |
| 55 | + <RowDefinition Height="1*"></RowDefinition> |
| 56 | + </Grid.RowDefinitions> |
| 57 | + <RadioButton Name="UDP_type_defalut" GroupName="UDP_type" IsChecked="True">Default</RadioButton> |
| 58 | + <RadioButton Name="UDP_type_broadcast" GroupName="UDP_type" Grid.Row="1" Checked="UDP_type_broadcast_Checked" Unchecked="UDP_type_broadcast_UnChecked">Broadcast</RadioButton> |
| 59 | + <RadioButton Name="UDP_type_multicast" GroupName="UDP_type" Grid.Row="2">Multicast</RadioButton> |
| 60 | + <ComboBox Grid.Row="3" IsEditable="True" Name="UDP_multicast_ip" SelectedIndex="0" Margin="20,0,0,0"> |
| 61 | + <Label>224.0.0.0</Label> |
| 62 | + <Label>224.0.0.1</Label> |
| 63 | + </ComboBox> |
| 64 | + </Grid> |
| 65 | + <Button Name="UDP_button" Grid.Row="3" Margin="20,5" Click="Button_Click" FontSize="16">Open</Button> |
| 66 | + <Grid Grid.Row="4"> |
| 67 | + <Grid.RowDefinitions> |
| 68 | + <RowDefinition Height="1*"></RowDefinition> |
| 69 | + <RowDefinition Height="1*"></RowDefinition> |
| 70 | + </Grid.RowDefinitions> |
| 71 | + <Label Grid.Row="0">Target IP</Label> |
| 72 | + <ComboBox Grid.Row="1" IsEditable="True" Name="UDP_Target_ip" SelectedIndex="0" Loaded="UDP_Target_ip_Loaded"> |
| 73 | + <Label ToolTip="127.0.0.1">localhost</Label> |
| 74 | + <Label Name="UDP_Target_ip_broadcast" ToolTip="255.255.255.255">broadcast</Label> |
| 75 | + </ComboBox> |
| 76 | + </Grid> |
| 77 | + <Grid Grid.Row="5"> |
| 78 | + <Grid.RowDefinitions> |
| 79 | + <RowDefinition Height="1*"></RowDefinition> |
| 80 | + <RowDefinition Height="1*"></RowDefinition> |
| 81 | + </Grid.RowDefinitions> |
| 82 | + <Label Grid.Row="0">Target Port</Label> |
| 83 | + <TextBox Grid.Row="1" Name="UDP_Target_port">12345</TextBox> |
| 84 | + </Grid> |
| 85 | + </Grid> |
| 86 | + </TabItem> |
| 87 | + <TabItem Name="Tab_Custom" Header="Custom"> |
| 88 | + |
| 89 | + </TabItem> |
| 90 | + </TabControl> |
| 91 | + </Grid> |
| 92 | + <Grid Grid.Column="1"> |
| 93 | + <Grid.RowDefinitions> |
| 94 | + <RowDefinition Height="1*"></RowDefinition> |
| 95 | + <RowDefinition Height="60"></RowDefinition> |
| 96 | + </Grid.RowDefinitions> |
| 97 | + <RichTextBox Grid.Row="0" Name="MsgBox" Margin="10,0,0,0" FontFamily="Consolas, Fira Code Light"/> |
| 98 | + <Grid Grid.Row="1" Margin="10,5,0,0"> |
| 99 | + <Grid.ColumnDefinitions> |
| 100 | + <ColumnDefinition Width="1*"></ColumnDefinition> |
| 101 | + <ColumnDefinition Width="0.25*" MinWidth="50" MaxWidth="120"></ColumnDefinition> |
| 102 | + </Grid.ColumnDefinitions> |
| 103 | + <RichTextBox Name="Send_Msg" Grid.Column="0" Margin="0,0,5,0" Keyboard.KeyUp="Send_Msg_KeyUp"/> |
| 104 | + <Button Name="Send_Button" Grid.Column="1" Click="Send_Button_Click" IsEnabled="False">Send</Button> |
| 105 | + </Grid> |
| 106 | + </Grid> |
| 107 | + |
| 108 | + </Grid> |
| 109 | +</Window> |
0 commit comments