- Timestamp:
- Mar 29, 2011, 5:38:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/UserPreferences.cs
r1111 r1117 7 7 { 8 8 /// <summary> 9 /// Designed to keep user preferences. Very basic for now.9 /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed. 10 10 /// </summary> 11 11 public class UserPreferences 12 12 { 13 bool _printAppointmentSlipAutomacially; 14 bool _printRoutingSlipAutomatically; 15 13 16 public UserPreferences() 14 17 { 15 PrintAppointmentSlipAutomacially = false; 16 PrintRoutingSlipAutomatically = false; 18 _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip; 19 _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip; 20 17 21 } 18 22 19 public bool PrintAppointmentSlipAutomacially { get; set; } 20 public bool PrintRoutingSlipAutomatically { get; set; } 23 public bool PrintAppointmentSlipAutomacially { 24 get { return _printAppointmentSlipAutomacially; } 25 set 26 { 27 CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip = _printAppointmentSlipAutomacially = value; 28 } 29 } 30 31 public bool PrintRoutingSlipAutomatically 32 { 33 get { return _printRoutingSlipAutomatically; } 34 set 35 { 36 CGDocumentManager.Current.DAL.AutoPrintRoutingSlip = _printRoutingSlipAutomatically = value; 37 } 38 } 21 39 } 22 40 }
Note:
See TracChangeset
for help on using the changeset viewer.