Skip to content

Commit

Permalink
Added translations to the "Down Detector" window (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Jan 9, 2021
1 parent df2af21 commit 74ebeeb
Show file tree
Hide file tree
Showing 6 changed files with 4,788 additions and 68 deletions.
70 changes: 11 additions & 59 deletions InternetTest/Forms/DownDetector.Designer.cs

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

3 changes: 3 additions & 0 deletions InternetTest/Forms/DownDetector.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using InternetTest.Classes;
using LeoCorpLibrary;
using LeoCorpLibrary.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down Expand Up @@ -27,11 +28,13 @@ private async void gunaGradientButton1_Click(object sender, EventArgs e)
if (await NetworkConnection.IsAvailableTestSiteAsync(gunaLineTextBox1.Text)) // Check if the site is available
{
gunaLabel2.Text = Language.WebSiteNotDownMessage; // Set the text
WinFormsHelpers.CenterControlOnForm(gunaLabel2, this); // Center
gunaPictureBox2.Image = Properties.Resources.check; // Set the image
}
else
{
gunaLabel2.Text = Language.WebSiteDownMessage; // Set the text
WinFormsHelpers.CenterControlOnForm(gunaLabel2, this); // Center
gunaPictureBox2.Image = Properties.Resources.cancel; // Set the image
}
}
Expand Down

0 comments on commit 74ebeeb

Please sign in to comment.