Exemple #1
0
        private void butCleanUp_Click(object sender, EventArgs e)
        {
            if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Delete allowed fee schedules that are not in use or that are attached to hidden insurance plans?"))
            {
                return;
            }
            long changed = FeeScheds.CleanupAllowedScheds();

            MessageBox.Show(changed.ToString() + Lan.g(this, " unused fee schedules deleted."));
            FillGrid();
        }
        private void butCleanUp_Click(object sender, EventArgs e)
        {
            if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "Delete allowed fee schedules that are not in use or that are attached to hidden insurance plans?"))
            {
                return;
            }
            long changed = FeeScheds.CleanupAllowedScheds();

            MessageBox.Show(changed.ToString() + " " + Lan.g(this, "unused fee schedules deleted."));
            FeeScheds.RefreshCache();
            _listFeeScheds    = FeeScheds.GetDeepCopy(_isSelectionMode);         //After deletion, refresh in-memory copy to continue editing.
            _listFeeSchedsOld = _listFeeScheds.Select(x => x.Copy()).ToList();
            FillGrid();
        }