source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet/Model/ContextChangedArgs.cs@ 1492

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

Initial Import of BMX4

File size: 1.9 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.ComponentModel;
5
6namespace IndianHealthService.BMXNet.Model
7{
8 /// <summary>
9 /// The argument to the ContextChanged method. This event has methods that allow you
10 /// to detect which aspects of the context have changed and what the new context is.
11 /// </summary>
12 public class ContextChangedArgs:EventArgs
13 {
14 private bool _isVisitChange = false;
15
16 /// <summary>
17 /// Answer if the visit had changed. When the patient changes and a visit had been selected, the
18 /// visit will change to null.
19 /// </summary>
20 /// <example>
21 /// In the following example, the first tab of a notebook is selected whenever the patient changes.
22 /// <code>
23 /// void Context_Changed(object sender, ContextChangedArgs e)
24 /// {
25 /// if (e.IsPatientChange)
26 /// {
27 /// this.SelectedIndex = 1;
28 /// this.RefreshAll();
29 /// }
30 /// }
31 /// </code>
32 /// </example>
33 public bool IsVisitChange
34 {
35 get { return _isVisitChange; }
36 set { _isVisitChange = value; }
37 }
38 private bool _isPatientChange = false;
39
40 /// <summary>
41 /// Answer if the patient had changed.
42 /// </summary>
43 public bool IsPatientChange
44 {
45 get { return _isPatientChange; }
46 set { _isPatientChange = value; }
47 }
48
49
50 private Context _afterContext = null;
51
52 /// <summary>
53 /// The current state of the context. This context object is that same instance used for the
54 /// life of the LocalSession
55 /// </summary>
56 public Context AfterContext
57 {
58 get { return _afterContext; }
59 set { _afterContext = value; }
60 }
61 }
62}
Note: See TracBrowser for help on using the repository browser.