Skip to content

Commit

Permalink
1.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rllyyy committed May 7, 2020
1 parent d367cc1 commit 030bfb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Internet Check/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using System.Runtime.InteropServices;
using System.Drawing;
using Microsoft.Win32.TaskScheduler;

namespace Internet_Check
{
Expand Down Expand Up @@ -62,7 +61,7 @@ private void ClickEvent()
//ButtonsInvisible();
new Thread(() =>
{
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Text = "Please enter only positve numbers that inbetween 4 and 32766"; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Text = "Please enter only positve numbers that are inbetween 4 and 32766"; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Visible = true; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.BringToFront(); ; });
Thread.Sleep(5000);
Expand Down Expand Up @@ -143,7 +142,7 @@ private void Checker()
}
else
{
//Activate this if every ping should be written into the file
//Uncomment this if every ping should be written into the file
//File.AppendAllText("connection issues.txt", jetzt.ToString() + " " + "Internet ist da" + Environment.NewLine);
}
}
Expand Down Expand Up @@ -323,10 +322,10 @@ public void ErrorAdminRights()
{
new Thread(() =>
{
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Text = "Please restart the app with admin rights"; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Text = "Please restart the app with admin rights. \n Settings were not applied"; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Visible = true; ; });
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.BringToFront(); ; });
Thread.Sleep(2700);
Thread.Sleep(3500);
Thread.CurrentThread.IsBackground = true;
this.labelErrormessage.BeginInvoke((MethodInvoker)delegate () { this.labelErrormessage.Visible = false; ; });
}).Start();
Expand Down
1 change: 0 additions & 1 deletion Internet Check/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ private void buttonBack_Click(object sender, EventArgs e)
}
catch
{
//Form1 noch nicht initialisiert
}
}

Expand Down

0 comments on commit 030bfb3

Please sign in to comment.