private void welcomeDialogItem_Click(object sender, EventArgs e) { if (this.welcomeDialog == null) { this.welcomeDialog = new WelcomeDialog(); this.welcomeDialog.Disposed += this.welcomeDialog_Disposed; } if (this.welcomeDialog.Visible) { this.welcomeDialog.Focus(); } else if (!this.welcomeDialog.IsEmpty) { this.welcomeDialog.Show(this); } }
private void welcomeDialog_Disposed(object sender, EventArgs e) { this.welcomeDialog.Disposed -= this.welcomeDialog_Disposed; this.welcomeDialog = null; }
private void welcomeDialogItem_Click(object sender, EventArgs e) { if (this.welcomeDialog == null) { this.welcomeDialog = new WelcomeDialog(); this.welcomeDialog.Disposed += this.welcomeDialog_Disposed; } if (this.welcomeDialog.Visible) this.welcomeDialog.Focus(); else if (!this.welcomeDialog.IsEmpty) this.welcomeDialog.Show(this); }