Пример #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     frmDonorRecord frm = new frmDonorRecord();
     this.Hide();
     frm.ShowDialog(this);
     this.Show();
     this.BringToFront();
     populateGrid();
     frm.Dispose();
 }
Пример #2
0
 public override void dgvData_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         long lngPKID = long.Parse(dgvData["DonorID", dgvData.CurrentCell.RowIndex].Value.ToString());
         frmDonorRecord frm = new frmDonorRecord(lngPKID);
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     catch (FormatException)
     {
         frmDonorRecord frm = new frmDonorRecord();
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     populateGrid();
 }