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