Skip to content

Commit 6e4459e

Browse files
committed
base
1 parent fe3728b commit 6e4459e

File tree

12 files changed

+862
-0
lines changed

12 files changed

+862
-0
lines changed

NetDebug.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29123.88
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetDebug", "NetDebug\NetDebug.csproj", "{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|x64.ActiveCfg = Debug|Any CPU
21+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|x64.Build.0 = Debug|Any CPU
22+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|x86.ActiveCfg = Debug|Any CPU
23+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Debug|x86.Build.0 = Debug|Any CPU
24+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|x64.ActiveCfg = Release|Any CPU
27+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|x64.Build.0 = Release|Any CPU
28+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|x86.ActiveCfg = Release|Any CPU
29+
{CEB737AE-A5BC-4952-8D49-75DCD85FAD0A}.Release|x86.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {3BCFA1A8-4A7A-4231-91A7-C988C8B3198B}
36+
EndGlobalSection
37+
EndGlobal

NetDebug/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

NetDebug/App.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="MeowType.NetDebug.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:MeowType.NetDebug"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

NetDebug/App.xaml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace MeowType.NetDebug
10+
{
11+
/// <summary>
12+
/// App.xaml 的交互逻辑
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

NetDebug/MainWindow.xaml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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

Comments
 (0)