Пример #1
0
        private void semifinishedInOutDetailToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (IsNull(semiFinishedInOutDetailForm))
            {
                semiFinishedInOutDetailForm = new SemiFinishedInOutDetailForm();

                AddToTabControl(semiFinishedInOutDetailForm);

                semiFinishedInOutDetailForm.FormClosed += new FormClosedEventHandler(SemiFinishedInOutDetailFormClosedEventHandler);
            }
            else
            {
                SetAsSelectedTab(semiFinishedInOutDetailForm);
            }
        }
Пример #2
0
 private void SemiFinishedInOutDetailFormClosedEventHandler(object sender, FormClosedEventArgs e)
 {
     semiFinishedInOutDetailForm = null;
     ClearTabPageWithContent(semiFinishedInOutDetailForm);
 }