private void productInOutDetailToolStripMenuItem_Click(object sender, EventArgs e) { if (IsNull(productInOutDetail)) { productInOutDetail = new ProductInOutDetail(); AddToTabControl(productInOutDetail); productInOutDetail.FormClosed += new FormClosedEventHandler(ProductInOutDetailClosedEventHandler); } else { SetAsSelectedTab(productInOutDetail); } }
private void ProductInOutDetailClosedEventHandler(object sender, FormClosedEventArgs e) { productInOutDetail = null; ClearTabPageWithContent(productInOutDetail); }