BMXNET 4.0 Developer API

The most important aspect of the Context interface is the Changed event that allows the receiver of the event know when the user is changing patient and visit. Applications need to change the data displayed to represent the currnet Patient and optional visit. The Changed event occurs after there is confirmation that the change has not been vetoed or the veto has been overridden. See Changing event.

Namespace:  IndianHealthService.BMXNet.Model
Assembly:  BMXNET40 (in BMXNET40.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
Event Changed As EventHandler(Of ContextChangedArgs)
 event EventHandler<ContextChangedArgs^>^ Changed {
	void add (EventHandler<ContextChangedArgs^>^ value);
	void remove (EventHandler<ContextChangedArgs^>^ value);
}

Examples

Users of the Context object should hook the event ASAP. The
Copy Code
            public void Startup()
             {
                 if (this.Context != null)
                 {
                     this.Context.Changed += new EventHandler<ContextChangedArgs>(Context_Changed);
             }
            
The context can be obtained if your control or component is a LocalSessionConsumer and if so then define the Context property as follows:
Copy Code
             public Context Context
             {
                 get { return this.LocalSession == null ? null : this.LocalSession.Context; }
             }
             

See Also