private void btnAdd_Click(object sender, EventArgs e) { frmCurriculumDetails fmCurriculumDetails = new frmCurriculumDetails(); fmCurriculumDetails.Op = "new"; fmCurriculumDetails.Show(this); }
private void btnEdit_Click(object sender, EventArgs e) { if (gvCurriculum.CurrentRow.Index >= 0) { frmCurriculumDetails fmCurriculumDetails = new frmCurriculumDetails(); fmCurriculumDetails.Op = "edit"; fmCurriculumDetails.SelectedCurriculum = currSelected; fmCurriculumDetails.Show(); } }