private void Nt_FormClosed(object sender, FormClosedEventArgs e) { nt = null; if (lblCurrentTable.Text != null) { primary = false; frmMain fm = ((frmMain)(this.Owner)); myTB = myDB.CreateTableDef(lblCurrentTable.Text); nf = new frmNewField(); nf.Owner = this; nf.FormClosed += Nf_FormClosed; nf.Show(); } }
private void btnTable_Click(object sender, EventArgs e) { if (nt == null) { nt = new frmNewTable(); nt.Owner = this; nt.FormClosed += Nt_FormClosed; nt.Show(); } else { nt.Activate(); } }