This commit is contained in:
Frank Skare
2021-05-16 16:49:43 +02:00
parent 45d3386a88
commit 0b28770d1a
31 changed files with 5677 additions and 17 deletions

View File

@@ -82,16 +82,20 @@ public class Msg
}
}
public static void ShowWarning(string mainInstruction,
string content = null,
bool onlyOnce = false)
public static void ShowWarning(
string mainInstruction,
string content = null,
bool onlyOnce = false)
{
if (onlyOnce && Msg.ShownMessages != null &&
Msg.ShownMessages.Contains(mainInstruction + content))
return;
Msg.Show(mainInstruction, content, MsgIcon.Warning, MsgButtons.Ok, MsgResult.None);
if (!onlyOnce) return;
if (!onlyOnce)
return;
Msg.ShownMessages += mainInstruction + content;
}