コード例 #1
0
ファイル: MainWindow.cs プロジェクト: victor-velchev/CSharp
 private void specialtyWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.specialtyWindow = null;
 }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: victor-velchev/CSharp
 private void specialtyToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (this.specialtyWindow == null)
     {
         this.specialtyWindow = new SpecialtyWindow();
         this.specialtyWindow.MdiParent = this;
         this.specialtyWindow.FormClosed += new FormClosedEventHandler(this.specialtyWindow_FormClosed);
         this.specialtyWindow.Show();
     }
     else
     {
         this.specialtyWindow.Activate();
     }
 }