private void listSearchEngines_SelectedIndexChanged(object sender, EventArgs e) { if (listSearchEngines.SelectedItems.Count > 0) { var engine = _searchEngines[listSearchEngines.SelectedItems[0].Index]; if (engine.Homepage != null) { lblSearchEngineHomepage.Text = engine.Homepage.ToString(); lblSearchEngineHomepage.LinkArea = new LinkArea(0, engine.Homepage.ToString().Length); } else { lblSearchEngineHomepage.Text = Resources.NotAvailableAbbreviation; lblSearchEngineHomepage.LinkArea = new LinkArea(0, 0); } lblSearchEngineSupportsRatings.Text = engine.SupportsRatings ? Resources.Yes : Resources.No; listBox1.Items.Clear(); foreach (var t in TablatureType.GetKnownTypes().Where(engine.SupportsTabType)) { listBox1.Items.Add(t.Name); } } }
public NewTabDialog(string artist, string title, TablatureType type) : this() { txtArtist.Text = artist; txtTitle.Text = title; typeList.SelectedType = type; ValidateInput(); }
private void PopulateTabTypeControls() { foreach (var t in TablatureType.GetKnownTypes()) { var typeStr = t.ToFriendlyString(); //library menu sidemenu.FirstNode.Nodes.Add(new TreeNode(typeStr) { NodeFont = sidemenu.FirstNode.FirstNode.NodeFont, Tag = t.ToString() }); } }
public TablatureSearchRequest(string artist, string title, TablatureType type, TablatureRating rating, List<ITablatureSearchEngine> searchEngines) : base(artist, title, type, rating) { _searchEngines = searchEngines; }
public TablatureSearchRequest(string artist, string title, TablatureType type, TablatureRating rating, List <ITablatureSearchEngine> searchEngines) : base(artist, title, type, rating) { _searchEngines = searchEngines; }