Ignore:
Timestamp:
Mar 29, 2011, 5:38:18 AM (13 years ago)
Author:
Sam Habiel
Message:

CGAVDocument: Don't Update Grid. Leave that to CGAVView.
CGAVView: When updating grid, make a copy of appointments, and use the copy, so there won't be clashes when updating appointments in the background.
CGDocument: Minor Changes in AppointmentNoShow; New method AppointmentUndoCheckIn
CGDocumentManager: Resequenced load order b/c UserPreferences now talks to DB.
DAL: New Methods to save autoprint preferences; new delegate to enable some async stuff
DCheckIn & DAppointPage: _myCodeIsFiringIstheCheckBoxChangedEvent added to protect against firing event when setting checkbox in the code.
DPatientLetter: No changes.
UserPreferences: Now gets and saves user preferences from DB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs

    r1111 r1117  
    2525            //
    2626            InitializeComponent();
     27
     28           
    2729        }
    2830
     
    6062        private List<Provider> _providers;
    6163        private ToolTip toolTip1;
     64        private bool _myCodeIsFiringIstheCheckBoxChangedEvent; // To prevent the event from firing when I set the control from code
    6265       
    6366        #endregion Fields
     
    233236            }
    234237
    235             //Print Routing Slip based on user preferences.
     238            _myCodeIsFiringIstheCheckBoxChangedEvent = true;
    236239            chkRoutingSlip.Checked = CGDocumentManager.Current.UserPreferences.PrintRoutingSlipAutomatically;
     240            _myCodeIsFiringIstheCheckBoxChangedEvent = false;
    237241
    238242            UpdateDialogData(true);
     
    475479        private void chkRoutingSlip_CheckedChanged(object sender, EventArgs e)
    476480        {
     481            if (_myCodeIsFiringIstheCheckBoxChangedEvent) return;
     482
    477483            CGDocumentManager.Current.UserPreferences.PrintRoutingSlipAutomatically = chkRoutingSlip.Checked;
    478484        }
Note: See TracChangeset for help on using the changeset viewer.