private void PipExtensionProvider_OperationFinished(object sender, OperationFinishedEventArgs e)
 {
     if (_pyService.GeneralOptions.ShowOutputWindowForPackageInstallation)
     {
         _outputWindow.ShowAndActivate();
     }
 }
 private void OnIndexOperationFinished(object sender, OperationFinishedEventArgs e)
 {
     dispatcher.Invoke(() =>
     {
         mainViewModel.AddLogEntry(e.Time, "Operation finished: " + e.OperationType);
     });
 }
 private void VKPackage_InstallationFinished(object sender, OperationFinishedEventArgs e)
 {
     if (e.OperationType == OperationType.Install)
     {
         buttonInstalled_Click(this, new RoutedEventArgs());
     }
 }
 /// <summary>
 /// Index operation finished
 /// </summary>
 /// <param name="sender">Object</param>
 /// <param name="e">OperationFinishedArg</param>
 public static void index_OperationFinished(object sender, OperationFinishedEventArgs e)
 {
     DateTime      time          = e.Time;          // Time when documents added
     Guid          indexId       = e.IndexId;       // Index Id
     string        indexFolder   = e.IndexFolder;   // Index Folder
     IndexStatus   status        = e.Status;        // Index Status
     OperationType operationType = e.OperationType; // Operation Type.
 }
示例#5
0
 private void ProgramEntry_UninstallationFinished(object sender, OperationFinishedEventArgs e)
 {
     if (!e.Cancelled)
     {
         UpdateProgramList(e.Entry, e.OperationType);
         NotifyService.Notify(new Notification("Info", "Uninstallation finished"));
     }
 }
示例#6
0
 private void Package_InstallationFinished(object sender, OperationFinishedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Entry.ComponentType == ProgramType.VoukoderCore || ((VKPackage)e.Entry).Dependencies != null)
         {
             LoadProgramLists();
         }
         else
         {
             UpdateProgramList(e.Entry, e.OperationType);
         }
         NotifyService.Notify(new Notification("Info", "Installation finished"));
     }
 }
示例#7
0
        string BuildOperationMessage(OperationFinishedEventArgs e)
        {
            string message;

            if ((e.DiskOperation & DiskOperation.Read) > 0)
            {
                message = "Reading";
                if ((e.DiskOperation & DiskOperation.Verify) > 0)
                {
                    message += " and verify";
                }
            }
            else if ((e.DiskOperation & DiskOperation.Write) > 0)
            {
                message = "Writing";
                if ((e.DiskOperation & DiskOperation.Verify) > 0)
                {
                    message += " and verify";
                }
            }
            else
            {
                message = "Verifying";
            }

            switch (e.OperationState)
            {
            case OperationFinishedState.Success:
                message += " was finished successfully";
                break;

            case OperationFinishedState.Canceled:
                message += " was canceled";
                break;

            case OperationFinishedState.Error:
                message += " was unsuccessful";
                break;
            }

            return(message);
        }