void refreshServerPluginsBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            RefreshBackgroundWorkerResult result = new RefreshBackgroundWorkerResult();

            result.RemotePlugins  = installationManager.GetRemotePluginList();
            result.RemoteProducts = installationManager.GetRemoteProductList();
            e.Result = result;
        }
 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();
 }
예제 #3
0
 void refreshServerPluginsBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) {
   RefreshBackgroundWorkerResult result = new RefreshBackgroundWorkerResult();
   result.RemotePlugins = installationManager.GetRemotePluginList();
   result.RemoteProducts = installationManager.GetRemoteProductList();
   e.Result = result;
 }