source: Scheduling/branches/Radiology-Support/cs/bsdx0200GUISourceCode/UserPreferences.cs@ 1168

Last change on this file since 1168 was 1168, checked in by Sam Habiel, 13 years ago

Lots of Documentation updates.
Absorption of all updates from trunk.
CGView: Changes in Appointment Menu; Handlers for these; Radiology Support
DRadExamSelect: Change in form design; auto print appointment slip implemented.

File size: 1.3 KB
RevLine 
[1168]1/*Licensed under LGPL*/
2
3using System;
[1111]4using System.Collections.Generic;
5using System.Linq;
6using System.Text;
7
8namespace IndianHealthService.ClinicalScheduling
9{
10 /// <summary>
[1117]11 /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
[1111]12 /// </summary>
13 public class UserPreferences
14 {
[1117]15 bool _printAppointmentSlipAutomacially;
16 bool _printRoutingSlipAutomatically;
17
[1111]18 public UserPreferences()
19 {
[1117]20 _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
21 _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
22
[1111]23 }
24
[1117]25 public bool PrintAppointmentSlipAutomacially {
26 get { return _printAppointmentSlipAutomacially; }
27 set
28 {
29 CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip = _printAppointmentSlipAutomacially = value;
30 }
31 }
32
33 public bool PrintRoutingSlipAutomatically
34 {
35 get { return _printRoutingSlipAutomatically; }
36 set
37 {
38 CGDocumentManager.Current.DAL.AutoPrintRoutingSlip = _printRoutingSlipAutomatically = value;
39 }
40 }
[1111]41 }
42}
Note: See TracBrowser for help on using the repository browser.