/// <summary>
        /// Called to raise the Updated event whenever the progress information (message, steps, etc.) is updated.
        /// </summary>
        /// <remarks>If overriding this method, be sure to call Base.OnUpdated to ensure that the event is still raised to its caller.</remarks>
        protected virtual void OnUpdated()
        {
            ProgressMonitorStackEventArgs e = new ProgressMonitorStackEventArgs(this, m_StatusMessage, m_CompletedSteps, m_MaximumSteps);

            //save the delegate field in a temporary field for thread safety
            EventHandler <ProgressMonitorStackEventArgs> tempEvent = Updated;

            if (tempEvent != null)
            {
                tempEvent(this, e);
            }
        }
Пример #2
0
 private void Monitors_Completed(object sender, ProgressMonitorStackEventArgs e)
 {
     CompleteProgress();
 }
Пример #3
0
 private void Monitors_Canceled(object sender, ProgressMonitorStackEventArgs e)
 {
     CancelProgress();
 }