private void totalInventoryDetailToolStripMenuItem_Click(object sender, EventArgs e) { if (IsNull(totalInventoryStatus)) { totalInventoryStatus = new TotalInventoryStatus(); AddToTabControl(totalInventoryStatus); totalInventoryStatus.FormClosed += new FormClosedEventHandler(TotalInventoryFormClosedEventHandler); } else { SetAsSelectedTab(totalInventoryStatus); } }
private void TotalInventoryFormClosedEventHandler(object sender, FormClosedEventArgs e) { totalInventoryStatus = null; ClearTabPageWithContent(totalInventoryStatus); }