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."); } }
private void newClaimantBtn_Click(object sender, EventArgs e) { var newClaimantForm = new claimantDetailsForm(); newClaimantForm.ShowDialog(); }