public ShortCutSetting() { Instance = this; InitializeComponent(); ShowContent(); }
static void OnOpenView() { if (Instance == null) { CreateInstance(); } else { Instance.Hide(); Instance.Dispose(); Instance = null; } }
protected override void OnFormClosed(System.Windows.Forms.FormClosedEventArgs e) { base.OnFormClosed(e); Instance = null; }
static void CreateInstance() { Instance = new ShortCutSetting(); Instance.TabText = "ShortCutSetting"; Instance.Show(Center.Form.DockerContainer, DockState.Float); }