private void btnAdd_Click(object sender, EventArgs e) { addExaminationDatas apdf = new addExaminationDatas(); apdf.lblExNo.Text = "0"; apdf.lblex.Text = "New personal Information"; apdf.btnDel.Visible = false; apdf.ShowDialog(); }
private void DGVex_DoubleClick(object sender, EventArgs e) { string data = DGVex.SelectedRows[0].Cells["ExaminationNo"].Value.ToString(); addExaminationDatas add = new addExaminationDatas(); add.lblExNo.Text = data; add.lblex.Text = "Update or Delete Information"; add.btnDel.Visible = true; add.ShowDialog(); }