BMXNET 4.0 Developer API
When the current patient or visit is being changed by the user, every subscriber to the
Changing method has the option to "Veto" the event by Cancelling it:
However, a Veto is like a U.S. presential Veto and that it can be overridden. The WinFramework
or EHR can override any Veto so all components (even if they veto changes) must be prepared to
have the context changed at anytime.
Namespace:
IndianHealthService.BMXNet.ModelCopy Code | |
---|---|
public void Startup() { if (this.Context != null) { this.Context.Changed += new EventHandler<ContextChangedArgs>(Context_Changed); this.Context.Changing += new EventHandler<ContextChangedArgs>(Context_Changing); } void Context_Changing(object sender, ContextChangingArgs e) { e.Cancel = needToFinishSomethingElseBeforeChangingContext; } |
Assembly: BMXNET40 (in BMXNET40.dll)
Syntax
C# | Visual Basic | Visual C++ |
event EventHandler<ContextChangingArgs> Changing
Event Changing As EventHandler(Of ContextChangingArgs)
event EventHandler<ContextChangingArgs^>^ Changing { void add (EventHandler<ContextChangingArgs^>^ value); void remove (EventHandler<ContextChangingArgs^>^ value); }