示例#1
0
文件: UI.cs 项目: datayang/V2RayGCon
 public static void MarkInvalidPortWithColorRed(Control control)
 {
     var port = Utils.Str2Int(control.Text);
     SetControlFontColor(control, port > 0 && port < 65536);
 }
示例#2
0
文件: UI.cs 项目: datayang/V2RayGCon
 public static void MarkInvalidAddressWithColorRed(Control control)
 {
     var isValid = Utils.TryParseAddress(control.Text, out _, out _);
     SetControlFontColor(control, isValid);
 }
示例#3
0
文件: UI.cs 项目: datayang/V2RayGCon
 public static void MsgBoxAsync(string title, string content) =>
     Utils.RunInBackground(() => MsgBox(title, content));