private void OpenSubSet(object sender, EventArgs e) { _frmSubSet = new SubSet(); _frmSubSet.FormClosed += FrmSubSetClosed; _frmSubSet.Show(); Hide(); }
void FrmSubSetClosed(object sender, FormClosedEventArgs e) { _frmSubSet.Dispose(); _frmSubSet = null; Show(); }