public void RefreshPresetsGrid(bool showResult)
		{
			LoadingCircle = true;
			var sp = new List<SearchParameter>();
			sp.Add(new SearchParameter());
			var ws = new WebServiceClient();
			ws.Url = MainForm.Current.OptionsPanel.InternetDatabaseUrlComboBox.Text;
			ws.SearchSettingsCompleted += wsPresets_SearchSettingsCompleted;
			System.Threading.ThreadPool.QueueUserWorkItem(delegate (object state)
			{
				ws.SearchSettingsAsync(sp.ToArray(), showResult);
			});
		}
Пример #2
0
 void LoadSettingsFromInternet()
 {
     var ws = new WebServiceClient();
     ws.Url = MainForm.Current.OptionsPanel.InternetDatabaseUrlComboBox.Text;
     ws.SearchSettingsCompleted += ws_SearchSettingsCompleted;
     _sp = new List<SearchParameter>();
     _sp.Add(new SearchParameter() { InstanceGuid = _di.InstanceGuid, ProductGuid = _di.ProductGuid });
     MainForm.Current.SettingsDatabasePanel.FillSearchParameterWithFiles(_sp);
     ws.SearchSettingsAsync(_sp.ToArray(), false);
 }