コード例 #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     frmDonorBookRecord frm = new frmDonorBookRecord();
     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["DonorBookID", dgvData.CurrentCell.RowIndex].Value.ToString());
         frmDonorBookRecord frm = new frmDonorBookRecord(lngPKID);
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     catch (FormatException)
     {
         frmDonorBookRecord frm = new frmDonorBookRecord();
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     populateGrid();
 }