private void listClaimForms_DoubleClick(object sender, System.EventArgs e) { if (listClaimForms.SelectedIndex == -1) { return; } FormClaimFormEdit FormCFE = new FormClaimFormEdit(); FormCFE.ClaimFormCur = ClaimForms.ListLong[listClaimForms.SelectedIndex]; FormCFE.ShowDialog(); changed = true; //we don't really know if they changed it, but always refresh //ClaimFormItems refreshed within FormCFE FillList(); }
private void gridInternal_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (e.Row == -1) { return; } FormClaimFormEdit FormCFE = new FormClaimFormEdit((ClaimForm)gridInternal.Rows[e.Row].Tag); FormCFE.ShowDialog(); if (FormCFE.DialogResult == DialogResult.OK) { changed = true; } }
///<summary>Add a custom claim form.</summary> private void butAdd_Click(object sender, System.EventArgs e) { ClaimForm ClaimFormCur = new ClaimForm(); ClaimForms.Insert(ClaimFormCur, false); ClaimFormCur.IsNew = true; FormClaimFormEdit FormCFE = new FormClaimFormEdit(ClaimFormCur); FormCFE.ShowDialog(); if (FormCFE.DialogResult != DialogResult.OK) { return; } changed = true; FillGridCustom(); }
private void gridCustom_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (e.Row == -1) { return; } FormClaimFormEdit FormCFE = new FormClaimFormEdit((ClaimForm)gridCustom.ListGridRows[e.Row].Tag); FormCFE.ShowDialog(); if (FormCFE.DialogResult != DialogResult.OK) { return; } changed = true; FillGridCustom(); }
private void butAdd_Click(object sender, System.EventArgs e) { ClaimForm ClaimFormCur = new ClaimForm(); ClaimForms.Insert(ClaimFormCur); FormClaimFormEdit FormCFE = new FormClaimFormEdit(); FormCFE.ClaimFormCur = ClaimFormCur; FormCFE.IsNew = true; FormCFE.ShowDialog(); if (FormCFE.DialogResult != DialogResult.OK) { return; } changed = true; //ClaimFormItems refreshed within FormCFE FillList(); }