source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet/Model/ContextChangingArgs.cs

Last change on this file was 1146, checked in by Sam Habiel, 14 years ago

Initial Import of BMX4

File size: 1.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.ComponentModel;
5
6namespace IndianHealthService.BMXNet.Model
7{
8 /// <summary>
9 /// An instance of these args are included with the ContextChanging event and this event
10 /// is a CancelEventArgs subclass. The Cancel property being set to True represents the desire
11 /// to Veto the change so the patient (and potentially visit) does not change. The Veto can be
12 /// overriden by the framework so be prepared for the context to change even if you don't want it
13 /// to.
14 /// </summary>
15 public class ContextChangingArgs : CancelEventArgs
16 {
17 private bool _isVisitChange = false;
18
19 /// <summary>
20 /// Answer True if the visit is about to be changed.
21 /// </summary>
22 public bool IsVisitChange
23 {
24 get { return _isVisitChange; }
25 set { _isVisitChange = value; }
26 }
27 private bool _isPatientChange = false;
28
29 /// <summary>
30 /// Answer True if the visit is about to be changed.
31 /// </summary>
32 public bool IsPatientChange
33 {
34 get { return _isPatientChange; }
35 set { _isPatientChange = value; }
36 }
37
38 private Context _beforeContext = null;
39
40 /// <summary>
41 /// The current state of the Context.
42 /// </summary>
43 public Context BeforeContext
44 {
45 get { return _beforeContext; }
46 set { _beforeContext = value; }
47 }
48 }
49}
Note: See TracBrowser for help on using the repository browser.