private void commoditiesWindow_FormClosed(object sender, FormClosedEventArgs e) { this.commoditiesWindow = null; }
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(); } }