Example #1
0
 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();
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmStudentDetails fmStudentDetails = new frmStudentDetails();
     fmStudentDetails.Op = "new";
     fmStudentDetails.ShowDialog(this);
 }