Exemple #1
0
 private void commoditiesWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.commoditiesWindow = null;
 }
Exemple #2
0
 private void commoditiesToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (this.commoditiesWindow == null)
     {
         this.commoditiesWindow = new CommoditiesWindow();
         this.commoditiesWindow.MdiParent = this;
         this.commoditiesWindow.FormClosed += new FormClosedEventHandler(this.commoditiesWindow_FormClosed);
         this.commoditiesWindow.Show();
     }
     else
     {
         this.commoditiesWindow.Activate();
     }
 }