Ejemplo n.º 1
0
 /// <summary>
 /// Event raised when the doing progress is notified.
 /// </summary>
 /// <param name="pSource">The source.</param>
 /// <param name="pEventArgs">The event arguments.</param>
 private void OnDoingProgressChanged(INotifyProgress pSource, NotifyProgressEventArgs pEventArgs)
 {
     if (this.Doing != null)
     {
         this.Doing(this, new CommandExecutionEventArgs(this, pEventArgs.PercentProgress));
     }
 }
 public Tekla(INotifyProgress notify)
 {
     logger      = LogManager.GetCurrentClassLogger();
     maillogger  = new MailLogger();
     request     = new Request();
     this.notify = notify;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AUserCommand"/> class.
        /// </summary>
        /// <param name="pTimeout">The timeout of the command.</param>
        /// <param name="pProgressEvaluator">The progress evaluator.</param>
        protected AUserCommand(TimeSpan?pTimeout, IProgressEvaluator pProgressEvaluator)
        {
            this.Timeout = pTimeout;

            this.mDoingProgressNotifier                  = new NotifyProgress();
            this.mDoingProgressNotifier.Evaluator        = pProgressEvaluator;
            this.mDoingProgressNotifier.ProgressChanged += this.OnDoingProgressChanged;

            this.mUndoingProgressNotifier                  = new NotifyProgress();
            this.mUndoingProgressNotifier.Evaluator        = pProgressEvaluator;
            this.mUndoingProgressNotifier.ProgressChanged += this.OnUndoingProgressChanged;
        }