void SetupAutoComplete() { try { List <string> engineList = new List <string>(); List <string> modList = new List <string>(); try { engineList = EngineDownload.GetEngineList(); modList = springDownloader.PackageDownloader.Repositories.SelectMany(x => x.VersionsByTag.Keys).ToList(); } catch (Exception ex) { Trace.TraceError(ex.ToString()); } InvokeIfNeeded(() => { tbEngine.AutoCompleteCustomSource.AddRange(engineList.ToArray()); tbGame.AutoCompleteCustomSource.AddRange(modList.ToArray()); }); } catch (Exception ex) { Trace.TraceError(ex.ToString()); } }
void SetupAutoComplete() { try { try { engineList = EngineDownload.GetEngineList(); modList = downloader.PackageDownloader.Repositories.SelectMany(x => x.VersionsByTag.Keys).ToList(); } catch (Exception ex) { Trace.TraceError(ex.ToString()); InvokeIfNeeded(() => { MessageBox.Show("Failed to get list: {0}", ex.Message); Close(); }); return; } InvokeIfNeeded(() => { tbEngine.AutoCompleteCustomSource.AddRange(engineList.ToArray()); tbEngineBisectTo.AutoCompleteCustomSource.AddRange(engineList.ToArray()); tbGame.AutoCompleteCustomSource.AddRange(modList.ToArray()); tbGameBisectTo.AutoCompleteCustomSource.AddRange(modList.ToArray()); }); } catch (Exception ex) { Trace.TraceError(ex.ToString()); } }
public void GetDevelopList() { var list = EngineDownload.GetEngineList(); Assert.IsTrue(list.Count > 1); }