-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
1,612 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Application x:Class="Auto_Ping_Csharp.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Auto_Ping_Csharp" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Windows; | ||
|
||
namespace Auto_Ping_Csharp | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{DA3228D4-CBAD-4861-99B2-E67A9A0C6E7D}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<RootNamespace>Auto_Ping_Csharp</RootNamespace> | ||
<AssemblyName>Auto Ping Csharp</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<WarningLevel>4</WarningLevel> | ||
<Deterministic>true</Deterministic> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>false</MapFileExtensions> | ||
<TargetCulture>en-US</TargetCulture> | ||
<ProductName>Auto Ping Worker</ProductName> | ||
<PublisherName>Kobe Arthur Scofield</PublisherName> | ||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish> | ||
<ApplicationRevision>15</ApplicationRevision> | ||
<ApplicationVersion>1.0.1.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>queue</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
<LangVersion>latestmajor</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationIcon>Resources\MainIcon.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SignManifests>false</SignManifests> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Xaml"> | ||
<RequiredTargetFramework>4.0</RequiredTargetFramework> | ||
</Reference> | ||
<Reference Include="WindowsBase" /> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ApplicationDefinition Include="App.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</ApplicationDefinition> | ||
<Page Include="MainWindow.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
<Compile Include="App.xaml.cs"> | ||
<DependentUpon>App.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="MainWindow.xaml.cs"> | ||
<DependentUpon>MainWindow.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Properties\AssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="Properties\MainWindow.zh-cn.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>MainWindow.zh-cn.resx</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\Settings.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Settings.settings</DependentUpon> | ||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
</Compile> | ||
<EmbeddedResource Include="Properties\MainWindow.en-us.resx" /> | ||
<EmbeddedResource Include="Properties\MainWindow.zh-cn.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>MainWindow.zh-cn.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Properties\MainWindow.zh-tw.resx" /> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
<None Include="Properties\Settings.settings"> | ||
<Generator>SettingsSingleFileGenerator</Generator> | ||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Resources\MainIcon.ico" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5 SP1</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<PublishUrlHistory>publish\</PublishUrlHistory> | ||
<InstallUrlHistory /> | ||
<SupportUrlHistory /> | ||
<UpdateUrlHistory /> | ||
<BootstrapperUrlHistory /> | ||
<ErrorReportUrlHistory /> | ||
<FallbackCulture>en-US</FallbackCulture> | ||
<VerifyUploadedFiles>false</VerifyUploadedFiles> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<Window x:Class="Auto_Ping_Csharp.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:Auto_Ping_Csharp" | ||
Title="Auto Ping Worker" Height="372" Width="600" ResizeMode="CanMinimize" WindowStartupLocation="CenterOwner" Icon="Resources/MainIcon.ico" Closed="MainWindowClosed"> | ||
|
||
<Window.Resources> | ||
<Style x:Key="Base"> | ||
<Setter Property="Panel.HorizontalAlignment" Value="Left"/> | ||
<Setter Property="Panel.VerticalAlignment" Value="Top"/> | ||
<Setter Property="Panel.ZIndex" Value="1"/> | ||
</Style> | ||
<Style x:Key="TextboxStyle"> | ||
<Setter Property="Panel.Width" Value="200"/> | ||
<Setter Property="Panel.HorizontalAlignment" Value="Left"/> | ||
<Setter Property="Panel.VerticalAlignment" Value="Top"/> | ||
<Setter Property="Panel.ZIndex" Value="2"/> | ||
</Style> | ||
<Style x:Key="LabelStyle"> | ||
<Setter Property="Panel.Width" Value="200"/> | ||
<Setter Property="Panel.HorizontalAlignment" Value="Left"/> | ||
<Setter Property="Panel.VerticalAlignment" Value="Top"/> | ||
<Setter Property="Panel.ZIndex" Value="2"/> | ||
</Style> | ||
<Style x:Key="CheckbuttonStyle"> | ||
<Setter Property="Panel.Width" Value="200"/> | ||
<Setter Property="Panel.HorizontalAlignment" Value="Left"/> | ||
<Setter Property="Panel.VerticalAlignment" Value="Top"/> | ||
<Setter Property="Panel.ZIndex" Value="2"/> | ||
</Style> | ||
<Style x:Key="ButtonStyle"> | ||
<Setter Property="Panel.Width" Value="48"/> | ||
<Setter Property="Panel.HorizontalAlignment" Value="Left"/> | ||
<Setter Property="Panel.VerticalAlignment" Value="Top"/> | ||
<Setter Property="Panel.ZIndex" Value="2"/> | ||
</Style> | ||
</Window.Resources> | ||
|
||
<Grid> | ||
<Grid Style="{StaticResource Base}" Width="224" Height="320" Margin="0,0,0,0"> | ||
<Label Style="{StaticResource LabelStyle}" Margin="12,8,0,0">IP address or domain name</Label> | ||
<TextBox x:Name="Destination_Fill" Style="{StaticResource TextboxStyle}" Margin="12,36,0,0"/> | ||
<Label Style="{StaticResource LabelStyle}" Margin="12,56,0,0">Send buffer size (Default 32):</Label> | ||
<TextBox x:Name="Buffer_Size" Style="{StaticResource TextboxStyle}" Margin="12,84,0,0"/> | ||
<CheckBox x:Name="Is_DF" Style="{StaticResource CheckbuttonStyle}" Margin="12,120,0,0">Don't Fragment flag enabled</CheckBox> | ||
<Label Style="{StaticResource LabelStyle}" Margin="12,144,0,0">TTL (default 64):</Label> | ||
<TextBox x:Name="TTL_Count" Style="{StaticResource TextboxStyle}" Margin="12,168,0,0"></TextBox> | ||
<Label Style="{StaticResource LabelStyle}" Margin="12,184,0,0">Timeout (ms):</Label> | ||
<TextBox x:Name="Timeout_Count" Style="{StaticResource TextboxStyle}" Margin="12,208,0,0"></TextBox> | ||
<Label Style="{StaticResource LabelStyle}" Margin="12,224,0,0">Interval (ms):</Label> | ||
<TextBox x:Name="Interval_Count" Style="{StaticResource TextboxStyle}" Margin="12,248,0,0"></TextBox> | ||
<Button x:Name="Start_Button" Style="{StaticResource ButtonStyle}" Margin="40,280,0,0" Click="Start_Button_Click">Start</Button> | ||
<Button x:Name="Stop_Button" Style="{StaticResource ButtonStyle}" Margin="120,280,0,0" Click="Stop_Button_Click">Stop</Button> | ||
</Grid> | ||
<Grid Style="{StaticResource Base}" Width="368" Height="320" Margin="224,0,0,0"> | ||
<TextBox x:Name="Error_Status" Width="336" Height="280" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" Panel.ZIndex="2"/> | ||
</Grid> | ||
<StatusBar Width="594" Height="24" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,320,0,0" Panel.ZIndex="1"> | ||
<StatusBarItem x:Name="NWStatus" Content="Network Status: "/> | ||
<StatusBarItem x:Name="LCPing" Content="Loopback: "/> | ||
<StatusBarItem x:Name="Average_Ping" Content="Ping: "/> | ||
<StatusBarItem x:Name="Pack_Loss" Content="PL: "/> | ||
<StatusBarItem x:Name="Ping_Status" Content="Current Ping: "/> | ||
</StatusBar> | ||
</Grid> | ||
</Window> |
Oops, something went wrong.