From a7c9e8ca6d06810b6a25c8872796846178571b01 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 20 Jul 2024 18:15:07 +0100 Subject: [PATCH] Changed message-boxes to themed message boxes --- MainForm.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MainForm.cs b/MainForm.cs index a5f98ee..6bbcc14 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -14,6 +14,7 @@ using bzit.bomg.Models; using FizzyLauncher.Models; using RyzStudio; using RyzStudio.Windows.Forms; +using RyzStudio.Windows.ThemedForms; namespace FizzyLauncher { @@ -670,7 +671,7 @@ namespace FizzyLauncher if (this.CurrentSession == null) { - MessageBox.Show("Unable to read session", "Load session"); + ThMessageBox.Show(this, "Unable to read session", "Load session", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } @@ -771,7 +772,7 @@ namespace FizzyLauncher { if (showNotices) { - MessageBox.Show("Unable to save icons", "Save session", MessageBoxButtons.OK, MessageBoxIcon.Information); + ThMessageBox.Show(this, "Unable to save icons", "Save session", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } @@ -786,14 +787,14 @@ namespace FizzyLauncher { if (showNotices) { - MessageBox.Show("Session saved!", "Save session", MessageBoxButtons.OK, MessageBoxIcon.Information); + ThMessageBox.Show(this, "Session saved!", "Save session", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { if (showNotices) { - MessageBox.Show(result.Message, "Save session"); + ThMessageBox.Show(this, result.Message, "Save session"); } }