void deleteProductWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                StatusView.ShowError("Connection Error",
                                     "There was an error while connecting to the server." + Environment.NewLine +
                                     "Please check your connection settings and user credentials.");
                this.products.Clear();
                this.plugins.Clear();
            }
            else
            {
                this.products = new List <DeploymentService.ProductDescription>(
                    (DeploymentService.ProductDescription[])((object[])e.Result)[0]);
                this.plugins = new List <DeploymentService.PluginDescription>(
                    (DeploymentService.PluginDescription[])((object[])e.Result)[1]);

                EnableControls();
            }
            UpdateProductsList();
            dirtyProducts.Clear();
            StatusView.HideProgressIndicator();
            StatusView.RemoveMessage(DeleteProductMessage);
            StatusView.UnlockUI();
        }
示例#2
0
 void removePluginsBackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         StatusView.ShowError("File Deletion Error", "There was problem while deleting files." + Environment.NewLine + e.Error.Message);
     }
     UpdateControl();
     StatusView.HideProgressIndicator();
     StatusView.UnlockUI();
 }
 void updateOrInstallPluginsBackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {
   if (e.Error != null) {
     StatusView.ShowError("Connection Error",
       "There was an error while connecting to the server." + Environment.NewLine +
       "Please check your connection settings and user credentials.");
   } else {
     UpdateControl();
   }
   StatusView.UnlockUI();
   StatusView.HideProgressIndicator();
 }
 void refreshServerPluginsBackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {
   if (e.Error != null) {
     StatusView.ShowError("Connection Error",
       "There was an error while connecting to the server." + Environment.NewLine +
       "Please check your connection settings and user credentials.");
   } else {
     RefreshBackgroundWorkerResult refreshResult = (RefreshBackgroundWorkerResult)e.Result;
     products = refreshResult.RemoteProducts;
     plugins = refreshResult.RemotePlugins;
     UpdateControl();
   }
   StatusView.UnlockUI();
   StatusView.RemoveMessage(PluginDiscoveryMessage);
   StatusView.HideProgressIndicator();
 }
示例#5
0
 void updatePluginsBackgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         StatusView.ShowError("Connection Error",
                              "There was an error while connecting to the server." + Environment.NewLine +
                              "Please check your connection settings and user credentials.");
     }
     else if (e.Cancelled)
     {
         StatusView.ShowMessage(NoUpdatesAvailableMessage);
     }
     StatusView.RemoveMessage(CheckingPluginsMessage);
     StatusView.HideProgressIndicator();
     StatusView.UnlockUI();
 }
示例#6
0
 void refreshPluginsWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         StatusView.ShowError("Connection Error",
                              "There was an error while connecting to the server." + Environment.NewLine +
                              "Please check your connection settings and user credentials.");
     }
     else
     {
         UpdatePluginListView((IEnumerable <IPluginDescription>)e.Result);
     }
     StatusView.HideProgressIndicator();
     StatusView.RemoveMessage(RefreshMessage);
     StatusView.UnlockUI();
 }