private void OpenProduction(object sender, EventArgs e) { _frmProduction = new FrmProduction(); _frmProduction.FormClosed += FrmProductionClosed; _frmProduction.Show(); Hide(); }
void FrmProductionClosed(object sender, FormClosedEventArgs e) { _frmProduction.Dispose(); _frmProduction = null; Show(); }