예제 #1
0
        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();
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        ///<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();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }