source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/BMX41000/IHS BMX Framework/IndianHealthService.BMXNet/LocalEventArgs.cs@ 1561

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

Initial Import of BMX4

File size: 2.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.ComponentModel;
5
6namespace IndianHealthService.BMXNet
7{
8 /// <summary>
9 /// The event args used by the LocalEventService.
10 /// </summary>
11 public class LocalEventArgs : EventArgs
12 {
13 private String _eventType = null;
14
15 /// <summary>
16 /// This string corresponds to well-known/shared EventTypes used to identify
17 /// different events published and subscribed within a local desktop application (WinFramework)
18 /// or in the EHR.
19 /// </summary>
20 /// <example>
21 /// The framewrk implements LocalSession.EventServices.RefreshRequested by sending or receiving
22 /// the LocalEvent with the EventType=="REFRESH".
23 /// </example>
24 /// <example>
25 /// The Well Child Module growth chart displays Height and Weight. When the EHR vitals component adds
26 /// new Heights and Weights it publishes a LocalEvent with an EventType PCC*MSR. If the growth chart detects
27 /// the Vitals update event it then refreshes the growth chart:
28 /// <code>
29 /// void Session_ApplicationEvent(object sender, LocalEventArgs e)
30 /// {
31 /// if (this.IsVitalsUpdatedEvent(e))
32 /// {
33 /// this.RefreshAll();
34 /// }
35 /// }
36 ///
37 /// protected bool IsVitalsUpdatedEvent(LocalEventArgs anEvent)
38 /// {
39 /// return anEvent.EventType.StartsWith("PCC") &amp;&amp; anEvent.EventType.EndsWith("MSR");
40 /// }
41 /// </code>
42 /// </example>
43 public String EventType
44 {
45 get { return _eventType; }
46 set { _eventType = value; }
47 }
48 private String _details = null;
49
50 /// <summary>
51 /// This is an optional peice of data with some event-specific details.
52 /// </summary>
53 public String Details
54 {
55 get { return _details; }
56 set { _details = value; }
57 }
58
59
60
61 }
62}
Note: See TracBrowser for help on using the repository browser.