示例#1
0
 private void tsbtnEdit_Click(object sender, EventArgs e)
 {
     try
     {
         uEntry = new frmUserEntry("Edit");
         uEntry.fillEntry();
         uEntry.ShowDialog();
         ShowUserDetail();
     }
     catch
     {
     }
 }
示例#2
0
 private void tsbtnNew_Click(object sender, EventArgs e)
 {
     try
     {
         uEntry = new frmUserEntry("Insert");
         uEntry.cmbDataBase.Visible = false;
         uEntry.lblDataBase.Visible = false;
         uEntry.AutoSizeMode        = AutoSizeMode.GrowAndShrink;
         uEntry.ShowDialog();
         ShowUserDetail();
     }
     catch
     {
     }
 }