Ejemplo n.º 1
0
 private void newReferralBtn_Click(object sender, EventArgs e)
 {
     var newReferralDoctorForm = new referralDetailsForm();
     newReferralDoctorForm.ShowDialog();
     if (newReferralDoctorForm.DialogResult == DialogResult.OK)
     {
         referralInstantFeedBack.Refresh();
     }
 }
Ejemplo n.º 2
0
        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.");
            }
        }