category added

This commit is contained in:
Meik
2025-11-14 15:20:16 +01:00
parent 4475997a59
commit 1283750829
5 changed files with 665 additions and 20 deletions

View File

@@ -194,16 +194,16 @@ namespace FasdDesktopUi.Pages.CustomMessageBox
return null;
}
public static int Show(string Message, List<string> MultiButtonText, string Caption = null, enumHealthCardStateLevel Level = enumHealthCardStateLevel.None, Window Owner = null, bool TopMost = false, bool CenterScreen = false, int MaxWidth = -1)
{
var messageBox = InitializeMessageBox(Message, Caption, Level, Owner, false, false, MultiButtonText, TopMost, CenterScreen);
if (MaxWidth > 0)
messageBox.MaxWidth = MaxWidth;
if (messageBox == null)
return -1;
messageBox.ShowDialog();
return messageBox.ResultIndex;
}
public static int Show(string Message, List<string> MultiButtonText, string Caption = null, enumHealthCardStateLevel Level = enumHealthCardStateLevel.None, Window Owner = null, bool TopMost = false, bool CenterScreen = false, int MaxWidth = -1)
{
var messageBox = InitializeMessageBox(Message, Caption, Level, Owner, false, false, MultiButtonText, TopMost, CenterScreen);
if (messageBox == null)
return -1;
if (MaxWidth > 0)
messageBox.MaxWidth = MaxWidth;
messageBox.ShowDialog();
return messageBox.ResultIndex;
}
public static bool? Show(string Message, string Caption = null, enumHealthCardStateLevel Level = enumHealthCardStateLevel.None, Window Owner = null, bool HasYesNoButtons = false, bool HasYesNoText = false, bool TopMost = false, bool CenterScreen = false)
{