private void ProviderTotalStepsChangedHandler(object sender, StepChangedEventArgs e) { var valueChange = e.NewValue - e.OldValue; totalSteps += valueChange; CurrentProgress = CalculateCurrentProgress(); NotifyPorgressChanged(CurrentProgress, CurrentMessage); }
/// <summary> /// Occurs when the connection manager sends a step change /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cManager_StepChanged(object sender, StepChangedEventArgs e) { this.ccsb.SetMessage(e.CurrentStep); }
private void connectionManager_StepChanged(object sender, StepChangedEventArgs e) { System.Console.WriteLine(e.CurrentStep); }
/// <summary> /// Occurs when the connection manager sends a step change /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void cManager_StepChanged(object sender, StepChangedEventArgs e) { this.ccsb.SetMessage(e.CurrentStep); }
private void StepChanged(object sender, StepChangedEventArgs args) { _stepChanged(args.Step); }
private void SubProgressProviderCurrentStepChangedHandler(object sender, StepChangedEventArgs e) { var stepsDelta = e.NewValue - e.OldValue; CurrentStep = CurrentStep + stepsDelta >= 0 ? CurrentStep + stepsDelta : 0; }
private void SubProgressProviderTotalStepsChangedHandler(object sender, StepChangedEventArgs e) { var stepsDelta = e.NewValue - e.OldValue; TotalSteps = TotalSteps + stepsDelta >= 0 ? TotalSteps + stepsDelta : 0; }
/// <summary> /// Event Handler /// </summary> /// <param name="sender">Sender object</param> /// <param name="e">Instance of type StepChangedEventArgs</param> internal void _connectionManager_StepChanged(object sender, StepChangedEventArgs e) { this._crmConnectionStatusBar.SetMessage(e.CurrentStep); }