Beispiel #1
0
 public static void MarkInvalidPortWithColorRed(Control control)
 {
     var port = Utils.Str2Int(control.Text);
     SetControlFontColor(control, port > 0 && port < 65536);
 }
Beispiel #2
0
 public static void MarkInvalidAddressWithColorRed(Control control)
 {
     var isValid = Utils.TryParseAddress(control.Text, out _, out _);
     SetControlFontColor(control, isValid);
 }
Beispiel #3
0
 public static void MsgBoxAsync(string title, string content) =>
     Utils.RunInBackground(() => MsgBox(title, content));