Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NCSGeek committed Feb 3, 2019
1 parent 2c987dc commit 4ba6400
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 33 deletions.
Binary file modified .vs/InternetChecker/v15/.suo
Binary file not shown.
Binary file modified .vs/InternetChecker/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/InternetChecker/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
31 changes: 16 additions & 15 deletions SimpleInternetConnectionCheck/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion SimpleInternetConnectionCheck/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ namespace SimpleInternetConnectionCheck
public partial class MainForm : System.Windows.Forms.Form
{
bool allow = true;
bool firstchecked = false;
private void refreshStatus()
{
if (allow == true)
{
Console.WriteLine("Checking internet connection...");

allow = false;
try
{
Expand Down Expand Up @@ -59,11 +59,20 @@ private static void createFirewallRule()

private void buttonRefresh(object sender, EventArgs e)
{
if (firstchecked == false)
{
label1.Text = "(Click to refresh)";
firstchecked = true;
}
this.Cursor = Cursors.WaitCursor;
pictureBox1.Cursor = Cursors.WaitCursor;
Thread thread = new Thread(refreshStatus)
{
IsBackground = true
};
thread.Start();
this.Cursor = Cursors.Default;
pictureBox1.Cursor = Cursors.Hand;
}

public MainForm()
Expand Down
18 changes: 9 additions & 9 deletions SimpleInternetConnectionCheck/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="button1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pictureBox1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down Expand Up @@ -173,6 +164,15 @@
rdv/8Ui4xT70TEYAAAAASUVORK5CYII=
</value>
</data>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="button1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>IrAGW9h0RPaBntV+i0lU9HjdjeRSwezAn8s3TOUqFAY=</dsig:DigestValue>
<dsig:DigestValue>p6eCN1rVoMZHxII0ly/cqD7JthzsbP0BW+/LOuofov8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified SimpleInternetConnectionCheck/bin/Debug/InternetChecker.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="InternetChecker.exe" size="56760">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="InternetChecker.exe" size="57272">
<assemblyIdentity name="InternetChecker" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>z3uZNpX04aMjuHedlqWirtOXuenIOk1Ffg72O5F7M9w=</dsig:DigestValue>
<dsig:DigestValue>Ei4lFVDIWVPpN1V1hGrh38p6COyEZve+xf7NPgvTNnw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand All @@ -62,7 +62,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ED2HZoNER199J45Kqkr49N1SkZOsMC4DHVJTogjnnQY=</dsig:DigestValue>
<dsig:DigestValue>buGsadnTKoHQTjYUPM6Elc3Q7IfTC19GuaIpSS17hcA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified SimpleInternetConnectionCheck/bin/Debug/InternetChecker.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>IrAGW9h0RPaBntV+i0lU9HjdjeRSwezAn8s3TOUqFAY=</dsig:DigestValue>
<dsig:DigestValue>p6eCN1rVoMZHxII0ly/cqD7JthzsbP0BW+/LOuofov8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file not shown.
Binary file modified SimpleInternetConnectionCheck/obj/Debug/InternetChecker.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="InternetChecker.exe" size="56760">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="InternetChecker.exe" size="57272">
<assemblyIdentity name="InternetChecker" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>z3uZNpX04aMjuHedlqWirtOXuenIOk1Ffg72O5F7M9w=</dsig:DigestValue>
<dsig:DigestValue>Ei4lFVDIWVPpN1V1hGrh38p6COyEZve+xf7NPgvTNnw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand All @@ -62,7 +62,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ED2HZoNER199J45Kqkr49N1SkZOsMC4DHVJTogjnnQY=</dsig:DigestValue>
<dsig:DigestValue>buGsadnTKoHQTjYUPM6Elc3Q7IfTC19GuaIpSS17hcA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified SimpleInternetConnectionCheck/obj/Debug/InternetChecker.pdb
Binary file not shown.
Binary file not shown.

0 comments on commit 4ba6400

Please sign in to comment.