private void BtnAdd_Click(object sender, EventArgs e) { FrmStudent frmStudent = new FrmStudent(); frmStudent.ShowDialog(); if (frmStudent.SaveCompleted) { LoadData(); } }
private void BtnView_Click(object sender, EventArgs e) { if (getId != Guid.Empty) { FrmStudent frmStudent = new FrmStudent(getId, false); frmStudent.ShowDialog(); if (frmStudent.SaveCompleted) { LoadData(); } } }