Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        public NewTabDialog(string artist, string title, TablatureType type)
            : this()
        {
            txtArtist.Text        = artist;
            txtTitle.Text         = title;
            typeList.SelectedType = type;

            ValidateInput();
        }
Пример #3
0
        public NewTabDialog(string artist, string title, TablatureType type)
            : this()
        {
            txtArtist.Text = artist;
            txtTitle.Text = title;
            typeList.SelectedType = type;

            ValidateInput();
        }
Пример #4
0
        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()
                });
            }
        }
Пример #5
0
 public TablatureSearchRequest(string artist, string title, TablatureType type, TablatureRating rating, List<ITablatureSearchEngine> searchEngines)
     : base(artist, title, type, rating)
 {
     _searchEngines = searchEngines;
 }
Пример #6
0
 public TablatureSearchRequest(string artist, string title, TablatureType type, TablatureRating rating, List <ITablatureSearchEngine> searchEngines)
     : base(artist, title, type, rating)
 {
     _searchEngines = searchEngines;
 }