Ejemplo n.º 1
0
 private void txt_title_TextChanged(object sender, EventArgs e)
 {
     if (!loading)
     {
         _entry.SetValue("title", txt_title.Text);
         _entry.SetValue("feed", (string)cmb_standardfeed.SelectedItem);
         _entry.SetValue("feedint", cmb_standardfeed.SelectedIndex.ToString());
         _entry.Title        = _entry.GetValue("title");
         _entry.ConfigString = _entry.GetConfigString();
     }
 }
Ejemplo n.º 2
0
 private void cmb_region_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!loading)
     {
         _entry.SetValue("region", (string)cmb_region.SelectedItem);
         //_entry.Title = _entry.GetValue("title");
         _entry.ConfigString = _entry.GetConfigString();
     }
 }
Ejemplo n.º 3
0
 private void txt_title_TextChanged(object sender, EventArgs e)
 {
     if (!loading)
     {
         _entry.SetValue("title", txt_title.Text);
         _entry.Title        = _entry.GetValue("title");
         _entry.ConfigString = _entry.GetConfigString();
     }
 }
        private void txt_title_TextChanged(object sender, EventArgs e)
        {
            if (!loading)
            {
                _entry.SetValue("title", txt_title.Text);
                _entry.SetValue("items", numericUpDown1.Value.ToString());
                _entry.SetValue("flat", checkBox1.Checked ? "true" : "false");

                _entry.Title        = _entry.GetValue("title");
                _entry.ConfigString = _entry.GetConfigString();
            }
        }
Ejemplo n.º 5
0
        private void list_startpage_SelectedIndexChanged(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            if (selectedSiteitem != null)
            {
                selectedSiteitem.ParentFolder = (string)cmb_folder.SelectedItem;
                selectedSiteitem.ConfigString = selectedSiteitem.GetConfigString();
            }

            cmb_folder.Items.Clear();
            cmb_folder.Items.Add("");

            foreach (ListViewItem item in list_startpage.Items)
            {
                SiteItemEntry siteItemEntry = item.Tag as SiteItemEntry;
                if (siteItemEntry != null && Youtube2MP.SiteItemProvider[siteItemEntry.Provider].GetType() == typeof(Folder))
                {
                    cmb_folder.Items.Add(siteItemEntry.Title);
                }
            }
            if (list_startpage.SelectedItems.Count > 0 && !loading)
            {
                SiteItemEntry entry = list_startpage.SelectedItems[0].Tag as SiteItemEntry;
                selectedSiteitem        = entry;
                cmb_folder.SelectedItem = selectedSiteitem.ParentFolder;
                ISiteItem siteItem = Youtube2MP.SiteItemProvider[entry.Provider];
                siteItem.Configure(entry);
                if (siteItem.ConfigControl != null)
                {
                    panel1.Controls.Add(siteItem.ConfigControl);
                }
            }
            foreach (ListViewItem listViewItemitem in list_startpage.Items)
            {
                listViewItemitem.Text = ((SiteItemEntry)listViewItemitem.Tag).Title;
            }
            BuildTree();
        }