private void btnAdd_Click(object sender, EventArgs e) { frmStudentDetails fmStudentDetails = new frmStudentDetails(); fmStudentDetails.Op = "new"; fmStudentDetails.ShowDialog(this); }
private void btnEdit_Click(object sender, EventArgs e) { if (gvStudent.CurrentRow.Index >= 0) { frmStudentDetails fmStudentDetails = new frmStudentDetails(); fmStudentDetails.Op = "edit"; fmStudentDetails.SelectedStudent = studentSelected; fmStudentDetails.Show(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (gvStudent.CurrentRow == null) return; if (gvStudent.CurrentRow.Index >= 0 && GlobalClass.userTypeCode != "cash") { frmStudentDetails fmStudentDetails = new frmStudentDetails(); fmStudentDetails.Op = "edit"; fmStudentDetails.SelectedStudent = studentSelected; fmStudentDetails.ShowDialog(this); } }
private void btnEdit_Click(object sender, EventArgs e) { if (gvStudent.CurrentRow == null) { return; } if (gvStudent.CurrentRow.Index >= 0 && GlobalClass.userTypeCode != "cash") { frmStudentDetails fmStudentDetails = new frmStudentDetails(); fmStudentDetails.Op = "edit"; fmStudentDetails.SelectedStudent = studentSelected; fmStudentDetails.ShowDialog(this); } }