Refactor: split Global.cs

This commit is contained in:
ChsBuffer
2021-03-25 12:21:42 +08:00
parent 5da5daa112
commit dcb90ccdcd
15 changed files with 45 additions and 82 deletions

View File

@@ -235,7 +235,7 @@ namespace Netch.Forms
private void SettingForm_Load(object sender, EventArgs e)
{
TUNTAPUseCustomDNSCheckBox_CheckedChanged(null, null);
Task.Run(() => BeginInvoke(new Action(() => UseFakeDNSCheckBox.Visible = Global.Flags.SupportFakeDns)));
Task.Run(() => BeginInvoke(new Action(() => UseFakeDNSCheckBox.Visible = Flags.SupportFakeDns)));
}
private void TUNTAPUseCustomDNSCheckBox_CheckedChanged(object? sender, EventArgs? e)