예제 #1
0
 private void viewBtn_Click(object sender, EventArgs e)
 {
     if (claimantViewGridView.IsAsyncInProgress == false)
     {
         if (claimantViewGridView.GetFocusedRow() != null)
         {
             var currentRow = (tblClaimant)claimantViewGridView.GetFocusedRow();
             var newClaimantForm = new claimantDetailsForm(currentRow);
             newClaimantForm.ShowDialog();
             if (newClaimantForm.DialogResult == DialogResult.OK)
             {
                 claimantLinqInstantFeedbackSource.Refresh();
             }
         }
     }
     else
     {
         MessageBox.Show("Data update in progress. Please try again later.");
     }
 }
예제 #2
0
 private void newClaimantBtn_Click(object sender, EventArgs e)
 {
     var newClaimantForm = new claimantDetailsForm();
     newClaimantForm.ShowDialog();
 }