protected virtual void OnCommunicationStateChanged(CommunicationStateChangedEventArgs args) { var handler = this.CommunicationStateChanged; if (handler != null) { handler(this, args); } }
// taking care of the busy (loading) indicator protected void WhenCommunicationStateChanges(Object sender, CommunicationStateChangedEventArgs args) { this.CommunicationStateModel = args.CommunicationStateModel; }