private void newReferralBtn_Click(object sender, EventArgs e) { var newReferralDoctorForm = new referralDetailsForm(); newReferralDoctorForm.ShowDialog(); if (newReferralDoctorForm.DialogResult == DialogResult.OK) { referralInstantFeedBack.Refresh(); } }
private void viewBtn_Click(object sender, EventArgs e) { if (referralGridView.IsAsyncInProgress != true) { if (referralGridView.GetFocusedRow() != null) { var newReferralDoctorForm = new referralDetailsForm((tblRefDoctor)referralGridView.GetFocusedRow()); newReferralDoctorForm.ShowDialog(); if (newReferralDoctorForm.DialogResult == DialogResult.OK) { referralInstantFeedBack.Refresh(); } } } else { MessageBox.Show("Data update in progress. Please try again later."); } }