Пример #1
0
 public FxStatusChangeEventArgs(FxStatus oldStatus, FxStatus newStatus, StatusChangeDriver driver, int progressPercentage, object userState)
     : base(progressPercentage, userState)
 {
     NewStatus = newStatus;
     OldStatus = oldStatus;
     ChangeDriver = driver;
 }
Пример #2
0
 public FxStatusChangeEventArgs(FxStatus oldStatus, FxStatus newStatus, StatusChangeDriver driver)
     : base(0, null)
 {
     NewStatus = newStatus;
     OldStatus = oldStatus;
     ChangeDriver = driver;
 }
Пример #3
0
 public FxStatusChangeEventArgs(FxStatus oldStatus, FxStatus newStatus, StatusChangeDriver driver, string message)
     : base(0, null)
 {
     NewStatus = newStatus;
     OldStatus = oldStatus;
     ChangeDriver = driver;
     Message = message;
 }
Пример #4
0
        /// <summary>
        /// Updates the <see cref="Status"/>.  If the new status is the same as the old status, no action is taken.  If there
        /// is a change, the status is updated and the <see cref="StatusChanged"/> event is fired.  If you do not want 
        /// the StatusChanged event fired use the <see cref="Status"/> property directly.
        /// </summary>
        /// <param name="status">The new status value.</param>
        /// <param name="changeDriver">Reason the status changed.</param>
        /// <param name="mssg">Any message</param>
        internal void UpdateStatus(FxStatus status, StatusChangeDriver changeDriver, string mssg)
        {
            if (Status != status)
            {
                FxStatus oldStatus = Status;
                FxStatus newStatus = status;
                Status = newStatus;

                OnStatusChanged(new FxStatusChangeEventArgs(oldStatus, newStatus, changeDriver, mssg));
            }
        }
Пример #5
0
 public FxCompletedEventArgs(Guid fxId, FxStatus status, StatusChangeDriver driver, Exception e, bool canceled, object state)
     : base(e, canceled, state)
 {
 }
Пример #6
0
 public void UpdateFxStatus(FxStatus status)
 {
     //labelControl2.Text = string.Format("Fx status = {0}", status);
 }
Пример #7
0
 public void SetStatus(FxStatus status, StatusChangeDriver changeDriver, string mssg)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #8
0
 public FxStatusChangeEventArgs(FxStatus oldStatus, FxStatus newStatus)
     : base(0, null)
 {
     NewStatus = newStatus;
     OldStatus = oldStatus;
 }