From 22ac8e9af36daa0c3350172b9df4da85da08f60e Mon Sep 17 00:00:00 2001 From: STAM Date: Sat, 2 Apr 2022 20:12:16 +0500 Subject: [PATCH] improve aboute box --- src/UI/FormAbout.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/UI/FormAbout.cs b/src/UI/FormAbout.cs index 7cf443d..cf470c5 100644 --- a/src/UI/FormAbout.cs +++ b/src/UI/FormAbout.cs @@ -1,5 +1,6 @@ using System.Diagnostics; using System.Runtime.InteropServices; +using DarkUI.Forms; using Octokit; namespace SourceSDK.ENV.Editor.UI @@ -36,17 +37,17 @@ namespace SourceSDK.ENV.Editor.UI 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. } }