public ContentOperationCallbackArgs(IAdditionalContent content, IVaultOperation activeOperation, bool success, params object[] args)
 {
     this.mArgs = null;
     this.mContent = content;
     this.mActiveOperation = activeOperation;
     this.mCompletedSuccessfully = success;
     this.mArgs = args;
 }
示例#2
0
 public ActivityMonitor(IAdditionalContent content, IVaultOperation operation)
 {
     this.InitializeComponent();
     this.mContent = content;
     this.mOperation = operation;
     this.SetStatus(this.Operation.LastStatus, new object[0]);
     if (this.Operation.IsProgressFinished)
     {
         this.OnProgressFinished();
     }
     if (this.Operation.IsOperationFinished)
     {
         this.OnOperationFinished();
     }
     this.Operation.OperationFinished += new ContentOperationCallback(this.Operation_OperationFinished);
     this.gpgLabelName.Text = content.Name;
     this.gpgPictureBoxContentType.Image = this.imageListContentTypes.Images[this.Content.ContentType.ImageIndex];
     this.progressMeter.Monitor = operation;
     operation.StatusChanged += new StatusProviderEventHandler(this.operation_StatusChanged);
     base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
 }
 public ContentOperationCallbackArgs(IAdditionalContent content, IVaultOperation activityMonitor) : this(content, activityMonitor, true, new object[0])
 {
 }