Skip to content

Commit

Permalink
improve aboute box
Browse files Browse the repository at this point in the history
  • Loading branch information
stamepicmorg committed Apr 2, 2022
1 parent 9df7d39 commit 22ac8e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/UI/FormAbout.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using DarkUI.Forms;
using Octokit;

namespace SourceSDK.ENV.Editor.UI
Expand Down Expand Up @@ -36,17 +37,17 @@ private async System.Threading.Tasks.Task CheckGitHubNewerVersion()
int versionComparison = localVersion.CompareTo(latestGitHubVersion);
if (versionComparison < 0)
{
MessageBox.Show("The version on GitHub is more up to date than this local release.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
DarkUI.Forms.DarkMessageBox.ShowInformation("The version on GitHub is more up to date than this local release.", "Information", DarkDialogButton.Ok);
//The version on GitHub is more up to date than this local release.
}
else if (versionComparison > 0)
{
MessageBox.Show("This local version is greater than the release version on GitHub.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
DarkUI.Forms.DarkMessageBox.ShowInformation("This local version is greater than the release version on GitHub.", "Information", DarkDialogButton.Ok);
//This local version is greater than the release version on GitHub.
}
else
{
MessageBox.Show("This local Version and the Version on GitHub are equal.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
DarkUI.Forms.DarkMessageBox.ShowInformation("This local Version and the Version on GitHub are equal.", "Information", DarkDialogButton.Ok);
//This local Version and the Version on GitHub are equal.
}
}
Expand Down

0 comments on commit 22ac8e9

Please sign in to comment.