Update v1.0.1

Dodano "ping"
Zmieniono nazwę zestawu
This commit is contained in:
Christopher
2020-12-17 01:04:33 +01:00
parent 75f3356c05
commit 807b99969a
41 changed files with 2526 additions and 67 deletions
@@ -1,5 +1,5 @@
namespace Narzędzie_diagnostyczne_karty_sieciowej
namespace NetworkInterface_Info
{
partial class Form1
{
@@ -37,17 +37,19 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
this.generujPlikTekstowyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.odświeżInformacjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.czcionkaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.opcjeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wkrótceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.stworzonePrzezKrzysiekSiemvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.pingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Cursor = System.Windows.Forms.Cursors.Default;
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.HideSelection = false;
this.textBox1.Location = new System.Drawing.Point(0, 24);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
@@ -99,24 +101,13 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
this.czcionkaToolStripMenuItem.Text = "Czcionka";
this.czcionkaToolStripMenuItem.Click += new System.EventHandler(this.changeFont);
//
// fontDialog1
//
this.fontDialog1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
//
// opcjeToolStripMenuItem
//
this.opcjeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.wkrótceToolStripMenuItem});
this.pingToolStripMenuItem});
this.opcjeToolStripMenuItem.Name = "opcjeToolStripMenuItem";
this.opcjeToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
this.opcjeToolStripMenuItem.Text = "Opcje";
//
// wkrótceToolStripMenuItem
//
this.wkrótceToolStripMenuItem.Enabled = false;
this.wkrótceToolStripMenuItem.Name = "wkrótceToolStripMenuItem";
this.wkrótceToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.wkrótceToolStripMenuItem.Text = "Wkrótce";
this.opcjeToolStripMenuItem.Size = new System.Drawing.Size(70, 20);
this.opcjeToolStripMenuItem.Text = "Narzędzia";
//
// stworzonePrzezKrzysiekSiemvToolStripMenuItem
//
@@ -126,6 +117,17 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
this.stworzonePrzezKrzysiekSiemvToolStripMenuItem.Text = "Stworzone przez KrzysiekSiemv";
this.stworzonePrzezKrzysiekSiemvToolStripMenuItem.Click += new System.EventHandler(this.stworzonePrzezKrzysiekSiemvToolStripMenuItem_Click);
//
// fontDialog1
//
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -136,7 +138,7 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Name = "Form1";
this.Text = "NetworkInterfaces Diagnostic";
this.Text = "NetworkInterfaces Info";
this.Load += new System.EventHandler(this.onLoad);
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
this.menuStrip1.ResumeLayout(false);
@@ -156,8 +158,8 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
private System.Windows.Forms.ToolStripMenuItem czcionkaToolStripMenuItem;
private System.Windows.Forms.FontDialog fontDialog1;
private System.Windows.Forms.ToolStripMenuItem opcjeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem wkrótceToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem stworzonePrzezKrzysiekSiemvToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem pingToolStripMenuItem;
}
}
@@ -13,7 +13,7 @@ using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Diagnostics;
namespace Narzędzie_diagnostyczne_karty_sieciowej
namespace NetworkInterface_Info
{
public partial class Form1 : Form
{
@@ -28,6 +28,12 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
textBox1.Text = ("Informacje o ustawieniach karty sieciowej dla urządzenia \"" + properties.HostName + "\"" + Environment.NewLine + Environment.NewLine);
if (NetworkInterface.GetIsNetworkAvailable())
textBox1.Text += ("Połączenie z Internetem .. : Tak" + Environment.NewLine + Environment.NewLine);
else
textBox1.Text += ("Połączenie z Internetem .. : Nie" + Environment.NewLine + Environment.NewLine);
foreach (NetworkInterface adapter in networkInterfaces)
{
textBox1.Text += adapter.Description + Environment.NewLine;
@@ -89,6 +95,9 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
// NIE DOTYKAĆ, BO DZIAŁA
private void generate(object sender, EventArgs e)
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
saveFileDialog1.FileName = "NetworkInterfaces Info " + properties.HostName + ".txt";
saveFileDialog1.Filter = "Plik tekstowy (*.txt)|*.txt|Wszystkie pliki (*.*)|*.*";
saveFileDialog1.FilterIndex = 1;
@@ -128,5 +137,11 @@ namespace Narzędzie_diagnostyczne_karty_sieciowej
{
Process.Start("https://github.com/KrzysiekSiemv");
}
private void pingToolStripMenuItem_Click(object sender, EventArgs e)
{
ping ping = new ping();
ping.Show();
}
}
}
@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{95B9449A-F2A1-43CC-8A80-E078E5C9DE78}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Narzędzie_diagnostyczne_karty_sieciowej</RootNamespace>
<AssemblyName>Narzędzie diagnostyczne karty sieciowej</AssemblyName>
<RootNamespace>NetworkInterface_Info</RootNamespace>
<AssemblyName>NetworkInterface Info</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
@@ -57,11 +57,20 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="ping.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ping.Designer.cs">
<DependentUpon>ping.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ping.resx">
<DependentUpon>ping.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -70,6 +79,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
@@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Narzędzie_diagnostyczne_karty_sieciowej
namespace NetworkInterface_Info
{
static class Program
{
@@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// Ogólne informacje o zestawie są kontrolowane poprzez następujący
// zestaw atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje
// powiązane z zestawem.
[assembly: AssemblyTitle("Narzędzie diagnostyczne karty sieciowej")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("NetworkInterface Info")]
[assembly: AssemblyDescription("Narzędzie do sprawdzania kart sieciowych")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Narzędzie diagnostyczne karty sieciowej")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyCompany("Krzysztof 'KrzysiekSiemv' Smaga")]
[assembly: AssemblyProduct("NetworkInterface Info")]
[assembly: AssemblyCopyright("Copyright © KrzysiekSiemv 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -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
// przy użyciu symbolu „*”, tak jak pokazano poniżej:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
@@ -1,68 +1,61 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ten kod został wygenerowany przez narzędzie.
// Wersja środowiska uruchomieniowego: 4.0.30319.42000
// Wersja wykonawcza:4.0.30319.42000
//
// Modyfikacje tego pliku mogą spowodować niewłaściwe zachowanie i zostaną utracone
// w przypadku ponownego wygenerowania kodu.
// Zmiany w tym pliku mogą spowodować nieprawidłowe zachowanie i zostaną utracone, jeśli
// kod zostanie ponownie wygenerowany.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Narzędzie_diagnostyczne_karty_sieciowej.Properties
{
namespace NetworkInterface_Info.Properties {
using System;
/// <summary>
/// Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itd.
/// Klasa zasobu wymagająca zdefiniowania typu do wyszukiwania zlokalizowanych ciągów itd.
/// </summary>
// Ta klasa została automatycznie wygenerowana za pomocą klasy StronglyTypedResourceBuilder
// przez narzędzie, takie jak ResGen lub Visual Studio.
// Aby dodać lub usunąć składowe, edytuj plik ResX, a następnie ponownie uruchom narzędzie ResGen
// z opcją /str lub ponownie skompiluj projekt programu VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
// Aby dodać lub usunąć składową, edytuj plik ResX, a następnie ponownie uruchom narzędzie ResGen
// z opcją /str lub ponownie utwórz projekt VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
internal Resources() {
}
/// <summary>
/// Zwraca buforowane wystąpienie składnika ResourceManager używane przez tę klasę.
/// Zwraca buforowane wystąpienie ResourceManager używane przez tę klasę.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Narzędzie_diagnostyczne_karty_sieciowej.Properties.Resources", typeof(Resources).Assembly);
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NetworkInterface_Info.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich
/// przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów.
/// przypadków przeszukiwania zasobów za pomocą tej klasy zasobów wymagającej zdefiniowania typu.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set
{
set {
resourceCulture = value;
}
}
@@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Narzędzie_diagnostyczne_karty_sieciowej.Properties {
namespace NetworkInterface_Info.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
@@ -0,0 +1,21 @@
<?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>
@@ -0,0 +1,21 @@
<?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 @@
94a38bd4208788cf2fb79dc6d8b7052e6b020e35
0efada2726b15dbc6f631cd1abdaaca65952a8fb
@@ -11,3 +11,18 @@ 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.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\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.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\NetworkInterface_Info.Form1.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.ping.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.Properties.Resources.resources
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.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.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Debug\NetworkInterface_Info.changeIPv4.resources
@@ -1 +1 @@
6e6417f9f2fe5df8fcc2cca4937f1a894a7456c5
445d41d2e11ca2778137de8d88bd5f1fd9b21f3c
@@ -10,3 +10,17 @@ 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\obj\Release\Narzędzie diagnostyczne karty sieciowej.csproj.CopyComplete
C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\Narzędzie diagnostyczne karty sieciowej.exe
C:\Users\Krzysiek\source\repos\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\Narzędzie diagnostyczne karty sieciowej.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\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\Release\NetworkInterface_Info.Form1.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\NetworkInterface_Info.ping.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\NetworkInterface_Info.Properties.Resources.resources
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\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\Release\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\bin\Release\NetworkInterface Info.exe.config
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Release\NetworkInterface Info.exe
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Release\NetworkInterface Info.pdb
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Release\System.ValueTuple.dll
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\bin\Release\System.ValueTuple.xml
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\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\Release\NetworkInterface Info.exe
C:\Users\Krzysiek\Documents\GitHub\NetworkInterfaces-Info\Narzędzie diagnostyczne karty sieciowej\Narzędzie diagnostyczne karty sieciowej\obj\Release\NetworkInterface Info.pdb
@@ -0,0 +1,285 @@
namespace NetworkInterface_Info
{
partial class ping
{
/// <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(ping));
this.panel1 = new System.Windows.Forms.Panel();
this.button3 = 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.label3 = new System.Windows.Forms.Label();
this.miliseconds = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label();
this.server = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ttl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.miliseconds)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.button3);
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.label3);
this.panel1.Controls.Add(this.miliseconds);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.server);
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.MaximumSize = new System.Drawing.Size(546, 100);
this.panel1.MinimumSize = new System.Drawing.Size(546, 100);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(546, 100);
this.panel1.TabIndex = 0;
//
// button3
//
this.button3.Location = new System.Drawing.Point(453, 65);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(81, 23);
this.button3.TabIndex = 9;
this.button3.Text = "Wyczyść";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.clearIt);
//
// button2
//
this.button2.Location = new System.Drawing.Point(366, 65);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(81, 23);
this.button2.TabIndex = 8;
this.button2.Text = "Stop";
this.button2.UseVisualStyleBackColor = true;
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
//
this.button1.Location = new System.Drawing.Point(366, 36);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(168, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Pinguj!";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.startPing);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(163, 70);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(20, 13);
this.label3.TabIndex = 4;
this.label3.Text = "ms";
//
// miliseconds
//
this.miliseconds.Location = new System.Drawing.Point(12, 68);
this.miliseconds.Maximum = new decimal(new int[] {
60000,
0,
0,
0});
this.miliseconds.Name = "miliseconds";
this.miliseconds.Size = new System.Drawing.Size(145, 20);
this.miliseconds.TabIndex = 3;
this.miliseconds.Value = new decimal(new int[] {
10000,
0,
0,
0});
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 52);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(155, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Maksymalny czas oczekiwania:";
//
// server
//
this.server.Location = new System.Drawing.Point(12, 25);
this.server.Name = "server";
this.server.Size = new System.Drawing.Size(171, 20);
this.server.TabIndex = 1;
this.server.Text = "github.com";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
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):";
//
// textBox1
//
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.Location = new System.Drawing.Point(0, 100);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(546, 350);
this.textBox1.TabIndex = 1;
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.pingIt);
//
// ping
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(546, 450);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(562, 489);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(562, 489);
this.Name = "ping";
this.ShowIcon = false;
this.Text = "Ping";
this.Load += new System.EventHandler(this.onLoad);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.ttl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.miliseconds)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.NumericUpDown miliseconds;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox server;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
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 button2;
private System.Windows.Forms.Timer timer1;
}
}
@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net.NetworkInformation;
namespace NetworkInterface_Info
{
public partial class ping : Form
{
public ping()
{
InitializeComponent();
}
private void pingIt(object sender, EventArgs e)
{
Ping pingSender = new Ping();
string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
byte[] buffer = Encoding.ASCII.GetBytes(data);
PingOptions options = new PingOptions(Int32.Parse(ttl.Value.ToString()), dontfragment.Checked);
PingReply pingReply = pingSender.Send(server.Text, Int32.Parse(miliseconds.Value.ToString()), buffer, options);
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;
else
{
textBox1.Text = "PING " + server.Text + " nie powiódł się. Status: " + pingReply.Status;
}
System.Threading.Thread.Sleep(1000);
}
private void startPing(object sender, EventArgs e)
{
textBox1.Text = "PING " + server.Text + Environment.NewLine;
timer1.Start();
button1.Enabled = false;
button2.Enabled = true;
button3.Enabled = false;
}
private void stopPing(object sender, EventArgs e)
{
timer1.Stop();
button1.Enabled = true;
button2.Enabled = false;
button3.Enabled = true;
}
private void clearIt(object sender, EventArgs e)
{
textBox1.Text = "";
button3.Enabled = false;
}
private void onLoad(object sender, EventArgs e)
{
button2.Enabled = false;
button3.Enabled = false;
}
}
}