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
Line 
1/*Licensed under LGPL*/
2
3using System;
4using System.Collections.Generic;
5using System.Linq;
6using System.Text;
7
8namespace IndianHealthService.ClinicalScheduling
9{
10 /// <summary>
11 /// Designed to keep user preferences. Gets settings from DB in constructor; Writes them back when changed.
12 /// </summary>
13 public class UserPreferences
14 {
15 bool _printAppointmentSlipAutomacially;
16 bool _printRoutingSlipAutomatically;
17
18 public UserPreferences()
19 {
20 _printAppointmentSlipAutomacially = CGDocumentManager.Current.DAL.AutoPrintAppointmentSlip;
21 _printRoutingSlipAutomatically = CGDocumentManager.Current.DAL.AutoPrintRoutingSlip;
22
23 }
24
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 }
41 }
42}
Note: See TracBrowser for help on using the repository browser.