3 Commits
Author SHA1 Message Date
Christopher 6dc966f064 Zmiana wersji i ogólnie no 2021-02-05 20:07:48 +01:00
Christopher ae6fa2fcff Build 05.02.2021
Małe poprawki stylistyczne oraz w kodzie
Dodano Traceroute
2021-02-05 17:03:14 +01:00
Christopher ae59681bad Coś tam próbowałem, ok? 2020-12-17 14:49:32 +01:00
30 changed files with 2346 additions and 150 deletions
@@ -38,18 +38,20 @@ namespace NetworkInterface_Info
this.odświeżInformacjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.odświeżInformacjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.czcionkaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.czcionkaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.opcjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.opcjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.tracerouteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.stworzonePrzezKrzysiekSiemvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.stworzonePrzezKrzysiekSiemvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fontDialog1 = new System.Windows.Forms.FontDialog(); this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.pingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// textBox1 // textBox1
// //
this.textBox1.BackColor = System.Drawing.Color.White;
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.Cursor = System.Windows.Forms.Cursors.Default; this.textBox1.Cursor = System.Windows.Forms.Cursors.Default;
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.textBox1.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.textBox1.HideSelection = false;
this.textBox1.Location = new System.Drawing.Point(0, 24); this.textBox1.Location = new System.Drawing.Point(0, 24);
this.textBox1.Multiline = true; this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
@@ -104,11 +106,26 @@ namespace NetworkInterface_Info
// opcjeToolStripMenuItem // opcjeToolStripMenuItem
// //
this.opcjeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.opcjeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.pingToolStripMenuItem}); this.pingToolStripMenuItem,
this.tracerouteToolStripMenuItem});
this.opcjeToolStripMenuItem.Name = "opcjeToolStripMenuItem"; this.opcjeToolStripMenuItem.Name = "opcjeToolStripMenuItem";
this.opcjeToolStripMenuItem.Size = new System.Drawing.Size(70, 20); this.opcjeToolStripMenuItem.Size = new System.Drawing.Size(70, 20);
this.opcjeToolStripMenuItem.Text = "Narzędzia"; this.opcjeToolStripMenuItem.Text = "Narzędzia";
// //
// pingToolStripMenuItem
//
this.pingToolStripMenuItem.Name = "pingToolStripMenuItem";
this.pingToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.pingToolStripMenuItem.Text = "Ping";
this.pingToolStripMenuItem.Click += new System.EventHandler(this.pingToolStripMenuItem_Click);
//
// tracerouteToolStripMenuItem
//
this.tracerouteToolStripMenuItem.Name = "tracerouteToolStripMenuItem";
this.tracerouteToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.tracerouteToolStripMenuItem.Text = "Traceroute";
this.tracerouteToolStripMenuItem.Click += new System.EventHandler(this.tracerouteToolStripMenuItem_Click);
//
// stworzonePrzezKrzysiekSiemvToolStripMenuItem // stworzonePrzezKrzysiekSiemvToolStripMenuItem
// //
this.stworzonePrzezKrzysiekSiemvToolStripMenuItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.stworzonePrzezKrzysiekSiemvToolStripMenuItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
@@ -121,13 +138,6 @@ namespace NetworkInterface_Info
// //
this.fontDialog1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.fontDialog1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
// //
// pingToolStripMenuItem
//
this.pingToolStripMenuItem.Name = "pingToolStripMenuItem";
this.pingToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.pingToolStripMenuItem.Text = "Ping";
this.pingToolStripMenuItem.Click += new System.EventHandler(this.pingToolStripMenuItem_Click);
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -138,7 +148,8 @@ namespace NetworkInterface_Info
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Name = "Form1"; this.Name = "Form1";
this.Text = "NetworkInterfaces Info"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NetworkInterfaces.Info";
this.Load += new System.EventHandler(this.onLoad); this.Load += new System.EventHandler(this.onLoad);
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged); this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
this.menuStrip1.ResumeLayout(false); this.menuStrip1.ResumeLayout(false);
@@ -160,6 +171,7 @@ namespace NetworkInterface_Info
private System.Windows.Forms.ToolStripMenuItem opcjeToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem opcjeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem stworzonePrzezKrzysiekSiemvToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem stworzonePrzezKrzysiekSiemvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem pingToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem pingToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem tracerouteToolStripMenuItem;
} }
} }
@@ -143,5 +143,11 @@ namespace NetworkInterface_Info
ping ping = new ping(); ping ping = new ping();
ping.Show(); ping.Show();
} }
private void tracerouteToolStripMenuItem_Click(object sender, EventArgs e)
{
traceroute traceroute = new traceroute();
traceroute.Show();
}
} }
} }
@@ -7,7 +7,7 @@
<ProjectGuid>{95B9449A-F2A1-43CC-8A80-E078E5C9DE78}</ProjectGuid> <ProjectGuid>{95B9449A-F2A1-43CC-8A80-E078E5C9DE78}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>NetworkInterface_Info</RootNamespace> <RootNamespace>NetworkInterface_Info</RootNamespace>
<AssemblyName>NetworkInterface Info</AssemblyName> <AssemblyName>NetworkInterface.Info</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
@@ -65,6 +65,12 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="traceroute.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="traceroute.Designer.cs">
<DependentUpon>traceroute.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -81,6 +87,9 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="traceroute.resx">
<DependentUpon>traceroute.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki // Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki
// przy użyciu symbolu „*”, tak jak pokazano poniżej: // przy użyciu symbolu „*”, tak jak pokazano poniżej:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")] [assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.1.0")] [assembly: AssemblyFileVersion("1.0.2.0")]
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Narzędzie_diagnostyczne_karty_sieciowej.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<userSettings>
<Narzędzie_diagnostyczne_karty_sieciowej.Properties.Settings>
<setting name="font" serializeAs="String">
<value>Courier New, 8.25pt</value>
</setting>
<setting name="windowSize" serializeAs="String">
<value>612, 429</value>
</setting>
</Narzędzie_diagnostyczne_karty_sieciowej.Properties.Settings>
</userSettings>
</configuration>
@@ -1 +1 @@
0efada2726b15dbc6f631cd1abdaaca65952a8fb eeffeecb8b26103caf5715dd58889694cefb3cfb
@@ -11,9 +11,6 @@ C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędz
C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.dll C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.dll
C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.xml C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.xml
C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.exe.config
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.exe
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.dll C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.dll
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.xml C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.xml
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csprojAssemblyReference.cache C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csprojAssemblyReference.cache
@@ -23,6 +20,24 @@ C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostycz
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.GenerateResource.cache C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.GenerateResource.cache
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CoreCompileInputs.cache C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CoreCompileInputs.cache
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface Info.exe C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.traceroute.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface Info.pdb D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.exe.config
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.changeIPv4.resources D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.exe
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface Info.pdb
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.dll
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\System.ValueTuple.xml
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csprojAssemblyReference.cache
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.Form1.resources
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.ping.resources
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.Properties.Resources.resources
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.traceroute.resources
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.GenerateResource.cache
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CoreCompileInputs.cache
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface Info.exe
D:\GitHub (krzysiek-smaga@outlook.com)\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface Info.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface.Info.exe.config
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface.Info.exe
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Debug\NetworkInterface.Info.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface.Info.exe
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface.Info.pdb
@@ -34,11 +34,6 @@ namespace NetworkInterface_Info
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dontfragment = new System.Windows.Forms.CheckBox();
this.ttl = new System.Windows.Forms.NumericUpDown();
this.label5 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.miliseconds = new System.Windows.Forms.NumericUpDown(); this.miliseconds = new System.Windows.Forms.NumericUpDown();
@@ -48,8 +43,6 @@ namespace NetworkInterface_Info
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ttl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.miliseconds)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.miliseconds)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@@ -57,8 +50,6 @@ namespace NetworkInterface_Info
// //
this.panel1.Controls.Add(this.button3); this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.miliseconds); this.panel1.Controls.Add(this.miliseconds);
@@ -67,15 +58,15 @@ namespace NetworkInterface_Info
this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.MaximumSize = new System.Drawing.Size(546, 100); this.panel1.MaximumSize = new System.Drawing.Size(544, 70);
this.panel1.MinimumSize = new System.Drawing.Size(546, 100); this.panel1.MinimumSize = new System.Drawing.Size(544, 70);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(546, 100); this.panel1.Size = new System.Drawing.Size(544, 70);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// button3 // button3
// //
this.button3.Location = new System.Drawing.Point(453, 65); this.button3.Location = new System.Drawing.Point(453, 38);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(81, 23); this.button3.Size = new System.Drawing.Size(81, 23);
this.button3.TabIndex = 9; this.button3.TabIndex = 9;
@@ -85,7 +76,7 @@ namespace NetworkInterface_Info
// //
// button2 // button2
// //
this.button2.Location = new System.Drawing.Point(366, 65); this.button2.Location = new System.Drawing.Point(366, 38);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(81, 23); this.button2.Size = new System.Drawing.Size(81, 23);
this.button2.TabIndex = 8; this.button2.TabIndex = 8;
@@ -93,74 +84,9 @@ namespace NetworkInterface_Info
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.stopPing); this.button2.Click += new System.EventHandler(this.stopPing);
// //
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(366, 9);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(145, 13);
this.label4.TabIndex = 7;
this.label4.Text = "1 sekunda = 1000 milisekund";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.dontfragment);
this.groupBox1.Controls.Add(this.ttl);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Location = new System.Drawing.Point(189, 9);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(171, 79);
this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Zaawansowane";
//
// dontfragment
//
this.dontfragment.AutoSize = true;
this.dontfragment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.dontfragment.Checked = true;
this.dontfragment.CheckState = System.Windows.Forms.CheckState.Checked;
this.dontfragment.Location = new System.Drawing.Point(6, 44);
this.dontfragment.Name = "dontfragment";
this.dontfragment.Size = new System.Drawing.Size(96, 17);
this.dontfragment.TabIndex = 2;
this.dontfragment.Text = "DontFragment:";
this.dontfragment.UseVisualStyleBackColor = true;
//
// ttl
//
this.ttl.Location = new System.Drawing.Point(87, 18);
this.ttl.Maximum = new decimal(new int[] {
128,
0,
0,
0});
this.ttl.Minimum = new decimal(new int[] {
16,
0,
0,
0});
this.ttl.Name = "ttl";
this.ttl.Size = new System.Drawing.Size(69, 20);
this.ttl.TabIndex = 1;
this.ttl.Value = new decimal(new int[] {
64,
0,
0,
0});
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 20);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(30, 13);
this.label5.TabIndex = 0;
this.label5.Text = "TTL:";
//
// button1 // button1
// //
this.button1.Location = new System.Drawing.Point(366, 36); this.button1.Location = new System.Drawing.Point(366, 12);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(168, 23); this.button1.Size = new System.Drawing.Size(168, 23);
this.button1.TabIndex = 5; this.button1.TabIndex = 5;
@@ -171,7 +97,7 @@ namespace NetworkInterface_Info
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(163, 70); this.label3.Location = new System.Drawing.Point(262, 40);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(20, 13); this.label3.Size = new System.Drawing.Size(20, 13);
this.label3.TabIndex = 4; this.label3.TabIndex = 4;
@@ -179,14 +105,19 @@ namespace NetworkInterface_Info
// //
// miliseconds // miliseconds
// //
this.miliseconds.Location = new System.Drawing.Point(12, 68); this.miliseconds.Location = new System.Drawing.Point(173, 38);
this.miliseconds.Maximum = new decimal(new int[] { this.miliseconds.Maximum = new decimal(new int[] {
60000, 100000,
0,
0,
0});
this.miliseconds.Minimum = new decimal(new int[] {
1,
0, 0,
0, 0,
0}); 0});
this.miliseconds.Name = "miliseconds"; this.miliseconds.Name = "miliseconds";
this.miliseconds.Size = new System.Drawing.Size(145, 20); this.miliseconds.Size = new System.Drawing.Size(83, 20);
this.miliseconds.TabIndex = 3; this.miliseconds.TabIndex = 3;
this.miliseconds.Value = new decimal(new int[] { this.miliseconds.Value = new decimal(new int[] {
10000, 10000,
@@ -197,7 +128,7 @@ namespace NetworkInterface_Info
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 52); this.label2.Location = new System.Drawing.Point(12, 40);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(155, 13); this.label2.Size = new System.Drawing.Size(155, 13);
this.label2.TabIndex = 2; this.label2.TabIndex = 2;
@@ -205,16 +136,16 @@ namespace NetworkInterface_Info
// //
// server // server
// //
this.server.Location = new System.Drawing.Point(12, 25); this.server.Location = new System.Drawing.Point(173, 12);
this.server.Name = "server"; this.server.Name = "server";
this.server.Size = new System.Drawing.Size(171, 20); this.server.Size = new System.Drawing.Size(109, 20);
this.server.TabIndex = 1; this.server.TabIndex = 1;
this.server.Text = "github.com"; this.server.Text = "onet.pl";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Location = new System.Drawing.Point(36, 15);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(131, 13); this.label1.Size = new System.Drawing.Size(131, 13);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
@@ -222,14 +153,15 @@ namespace NetworkInterface_Info
// //
// textBox1 // textBox1
// //
this.textBox1.BackColor = System.Drawing.Color.White;
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.textBox1.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.textBox1.Location = new System.Drawing.Point(0, 100); this.textBox1.Location = new System.Drawing.Point(0, 70);
this.textBox1.Multiline = true; this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true; this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(546, 350); this.textBox1.Size = new System.Drawing.Size(544, 381);
this.textBox1.TabIndex = 1; this.textBox1.TabIndex = 1;
// //
// timer1 // timer1
@@ -240,23 +172,19 @@ namespace NetworkInterface_Info
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(546, 450); this.ClientSize = new System.Drawing.Size(544, 451);
this.Controls.Add(this.textBox1); this.Controls.Add(this.textBox1);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(562, 489);
this.MinimizeBox = false; this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(562, 489); this.MinimumSize = new System.Drawing.Size(560, 490);
this.Name = "ping"; this.Name = "ping";
this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Ping"; this.Text = "Ping - NetworkInterfaces.Info";
this.Load += new System.EventHandler(this.onLoad); this.Load += new System.EventHandler(this.onLoad);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.ttl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.miliseconds)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.miliseconds)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -273,11 +201,6 @@ namespace NetworkInterface_Info
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.CheckBox dontfragment;
private System.Windows.Forms.NumericUpDown ttl;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Timer timer1;
@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Net.NetworkInformation; using System.Net.NetworkInformation;
using System.Net;
namespace NetworkInterface_Info namespace NetworkInterface_Info
{ {
@@ -25,9 +26,9 @@ namespace NetworkInterface_Info
string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
byte[] buffer = Encoding.ASCII.GetBytes(data); byte[] buffer = Encoding.ASCII.GetBytes(data);
PingOptions options = new PingOptions(Int32.Parse(ttl.Value.ToString()), dontfragment.Checked); PingOptions options = new PingOptions(64, true);
PingReply pingReply = pingSender.Send(server.Text, Int32.Parse(miliseconds.Value.ToString()), buffer, options); PingReply pingReply = pingSender.Send(server.Text, Convert.ToInt32(miliseconds.Value), buffer, options);
if (pingReply.Status == IPStatus.Success) if (pingReply.Status == IPStatus.Success)
textBox1.Text += pingReply.Buffer.Length + " bajtów od " + server.Text + " (" + pingReply.Address + "): ttl=" + pingReply.Options.Ttl + " czas=" + pingReply.RoundtripTime + " ms" + Environment.NewLine; textBox1.Text += pingReply.Buffer.Length + " bajtów od " + server.Text + " (" + pingReply.Address + "): ttl=" + pingReply.Options.Ttl + " czas=" + pingReply.RoundtripTime + " ms" + Environment.NewLine;
else else
@@ -0,0 +1,181 @@
namespace NetworkInterface_Info
{
partial class traceroute
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(traceroute));
this.panel1 = new System.Windows.Forms.Panel();
this.clearText = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.destination = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.outputText = new System.Windows.Forms.RichTextBox();
this.dontShowHostnames = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.maxHops = new System.Windows.Forms.NumericUpDown();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.maxHops)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.maxHops);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.dontShowHostnames);
this.panel1.Controls.Add(this.clearText);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.destination);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(544, 91);
this.panel1.TabIndex = 2;
//
// clearText
//
this.clearText.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.clearText.Location = new System.Drawing.Point(364, 51);
this.clearText.Name = "clearText";
this.clearText.Size = new System.Drawing.Size(168, 23);
this.clearText.TabIndex = 9;
this.clearText.Text = "Wyczyść";
this.clearText.UseVisualStyleBackColor = true;
this.clearText.Click += new System.EventHandler(this.clearText_Click);
//
// button1
//
this.button1.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.button1.Location = new System.Drawing.Point(364, 22);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(168, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Śledź!";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.startTracing);
//
// destination
//
this.destination.Location = new System.Drawing.Point(174, 14);
this.destination.Name = "destination";
this.destination.Size = new System.Drawing.Size(114, 20);
this.destination.TabIndex = 1;
this.destination.Text = "onet.pl";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(33, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(131, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Cel (domena lub adres IP):";
//
// outputText
//
this.outputText.BackColor = System.Drawing.Color.White;
this.outputText.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.outputText.Dock = System.Windows.Forms.DockStyle.Fill;
this.outputText.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.outputText.Location = new System.Drawing.Point(0, 91);
this.outputText.Name = "outputText";
this.outputText.ReadOnly = true;
this.outputText.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
this.outputText.Size = new System.Drawing.Size(544, 360);
this.outputText.TabIndex = 3;
this.outputText.Text = "";
//
// dontShowHostnames
//
this.dontShowHostnames.AutoSize = true;
this.dontShowHostnames.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.dontShowHostnames.Location = new System.Drawing.Point(36, 40);
this.dontShowHostnames.Name = "dontShowHostnames";
this.dontShowHostnames.Size = new System.Drawing.Size(152, 17);
this.dontShowHostnames.TabIndex = 10;
this.dontShowHostnames.Text = "Nie pokazuj nazwy hostów";
this.dontShowHostnames.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 65);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(159, 13);
this.label2.TabIndex = 11;
this.label2.Text = "Maksymalna liczba przeskoków:";
//
// maxHops
//
this.maxHops.Location = new System.Drawing.Point(174, 63);
this.maxHops.Name = "maxHops";
this.maxHops.Size = new System.Drawing.Size(89, 20);
this.maxHops.TabIndex = 12;
this.maxHops.Value = new decimal(new int[] {
30,
0,
0,
0});
//
// traceroute
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(544, 451);
this.Controls.Add(this.outputText);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(560, 490);
this.Name = "traceroute";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Trace Route - NetworkInterfaces.Info";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.maxHops)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button clearText;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox destination;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.RichTextBox outputText;
private System.Windows.Forms.CheckBox dontShowHostnames;
private System.Windows.Forms.NumericUpDown maxHops;
private System.Windows.Forms.Label label2;
}
}
@@ -0,0 +1,57 @@
using System;
using System.Windows.Forms;
using System.Threading;
using System.Diagnostics;
namespace NetworkInterface_Info
{
public partial class traceroute : Form
{
Thread thread;
Process process;
public traceroute() { InitializeComponent(); }
private void startTracing(object sender, EventArgs e) { TraceIt(destination.Text, dontShowHostnames.Checked); }
private void clearText_Click(object sender, EventArgs e) { outputText.Text = ""; }
public void TraceIt(string url, bool dontShowHostnames)
{
outputText.Text = "";
string arguments;
if (!dontShowHostnames)
arguments = "-h " + Convert.ToString(maxHops.Value) + " " + url;
else
arguments = "-d -h " + Convert.ToString(maxHops.Value) + " " + url;
process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "TRACERT.exe",
Arguments = arguments,
CreateNoWindow = true,
UseShellExecute = false,
RedirectStandardOutput = true
}
};
thread = new Thread(() => {
process.Start();
while (!process.StandardOutput.EndOfStream)
{
string line = process.StandardOutput.ReadLine();
BeginInvoke(new Action(() => {
outputText.Text += line + Environment.NewLine;
}));
}
process.WaitForExit();
});
thread.Start();
}
}
}