Exemple #1
0
        private void StartupMEFFileDownloaded(object sender, MEFFileDownloadProgressEventArgs eventArgs)
        {
            if (InvokeRequired)
            {
                Invoke(new MethodInvoker(() => StartupMEFFileDownloaded(sender, eventArgs)));
                return;
            }

            //25% to 50% is downloading MEF
            pbLoadProgress.Value = (int)(250 + ((float)eventArgs.CurrentDllNumber / (float)eventArgs.DllsSeenInCatalogue * 250f));

            lblProgress.Text = "Downloading MEF File " + eventArgs.FileBeingProcessed;

            if (eventArgs.Status == MEFFileDownloadEventStatus.OtherError)
            {
                ragSmiley1.Fatal(eventArgs.Exception);
            }
        }
Exemple #2
0
 private void StartupOnMEFFileDownloaded(object sender, MEFFileDownloadProgressEventArgs args)
 {
     Assert.IsTrue(args.Status == MEFFileDownloadEventStatus.Success || args.Status == MEFFileDownloadEventStatus.FailedDueToFileLock, "MEFFileDownloadEventStatus is " + args.Status + " for plugin " + args.FileBeingProcessed + Environment.NewLine + (args.Exception == null ? "No exception" : ExceptionHelper.ExceptionToListOfInnerMessages(args.Exception)));
 }