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