示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }