コード例 #1
0
 /// <summary>
 /// Called when state is changed.
 /// </summary>
 /// <param name="e">Event arguments instance.</param>
 protected virtual void OnStateChanged(StateChangedEventArgs e)
 {
     var temp = StateChanged;
     if (temp != null)
     {
         temp(this, e);
     }
 }
コード例 #2
0
 /// <summary>
 /// Handles command state changes.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event arguments instance.</param>
 private void _StateServiceStateChanged(object sender, StateChangedEventArgs e)
 {
     _UpdateState();
 }
コード例 #3
0
        /// <summary>
        /// Notifies about state change.
        /// </summary>
        /// <param name="isEnabled">The new value indicating whether the
        /// tracking service is enabled.</param>
        private void _NotifyStateChanged(bool isEnabled)
        {
            var args = new StateChangedEventArgs(isEnabled);

            this.OnStateChanged(args);
        }
コード例 #4
0
 /// <summary>
 /// Notifies about state change.
 /// </summary>
 /// <param name="isEnabled">The new value indicating whether the
 /// tracking service is enabled.</param>
 private void _NotifyStateChanged(bool isEnabled)
 {
     var args = new StateChangedEventArgs(isEnabled);
     this.OnStateChanged(args);
 }
コード例 #5
0
 /// <summary>
 /// Handles workflow management connection state changes.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event arguments instance.</param>
 private void _WorkflowManagementStateTrackerStateChanged(
     object sender,
     StateChangedEventArgs e)
 {
     if (_workflowManagementIsEnabled != e.IsEnabled)
     {
         _workflowManagementIsEnabled = e.IsEnabled;
         this.UpdatedEnabledState();
     }
 }
コード例 #6
0
 /// <summary>
 /// Handles VRP solver state changes.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event arguments instance.</param>
 private void _SolverStateTrackerStateChanged(
     object sender,
     StateChangedEventArgs e)
 {
     var newValue = !e.IsEnabled;
     if (_hasRoutingOperationInProgress != newValue)
     {
         _hasRoutingOperationInProgress = newValue;
         this.UpdatedEnabledState();
     }
 }