public void SetEntry(SiteItemEntry entry) { loading = true; _entry = entry; cmb_time.Items.Clear(); cmb_standardfeed.Items.Clear(); cmb_region.Items.Clear(); cmb_time.Items.Add(""); foreach (string s in Youtube2MP._settings.TimeList) { cmb_time.Items.Add(s); } cmb_standardfeed.Items.AddRange(Youtube2MP._settings.Cats.ToArray()); cmb_standardfeed.SelectedIndex = 0; cmb_region.Items.Add(""); foreach (KeyValuePair <string, string> valuePair in Youtube2MP._settings.Regions) { cmb_region.Items.Add(valuePair.Key); } _entry.PharseSettings(entry.ConfigString); txt_title.Text = _entry.GetValue("title"); cmb_region.SelectedItem = _entry.GetValue("region"); cmb_time.SelectedItem = _entry.GetValue("time"); cmb_standardfeed.SelectedItem = _entry.GetValue("feed"); loading = false; }
public void SetEntry(SiteItemEntry entry) { loading = true; _entry = entry; cmb_time.Items.Clear(); cmb_standardfeed.Items.Clear(); cmb_region.Items.Clear(); cmb_time.Items.Add(""); foreach (string s in Youtube2MP._settings.TimeList) { cmb_time.Items.Add(s); } cmb_standardfeed.Items.AddRange(Youtube2MP._settings.Cats.ToArray()); cmb_standardfeed.SelectedIndex = 0; cmb_region.Items.Add(""); foreach (KeyValuePair<string, string> valuePair in Youtube2MP._settings.Regions) { cmb_region.Items.Add(valuePair.Key); } _entry.PharseSettings(entry.ConfigString); txt_title.Text = _entry.GetValue("title"); cmb_region.SelectedItem = _entry.GetValue("region"); cmb_time.SelectedItem = _entry.GetValue("time"); cmb_standardfeed.SelectedItem = _entry.GetValue("feed"); loading = false; }
public void SetEntry(SiteItemEntry entry,string[] entries) { loading = true; _entry = entry; cmb_standardfeed.Items.Clear(); cmb_standardfeed.Items.AddRange(entries); cmb_standardfeed.SelectedIndex = 0; _entry.PharseSettings(entry.ConfigString); txt_title.Text = _entry.GetValue("title"); cmb_standardfeed.SelectedItem = _entry.GetValue("feed"); chk_all.Checked = _entry.GetValue("all") == "true"; loading = false; }
public void SetEntry(SiteItemEntry entry, string[] entries) { loading = true; _entry = entry; cmb_standardfeed.Items.Clear(); cmb_standardfeed.Items.AddRange(entries); cmb_standardfeed.SelectedIndex = 0; _entry.PharseSettings(entry.ConfigString); txt_title.Text = _entry.GetValue("title"); cmb_standardfeed.SelectedItem = _entry.GetValue("feed"); chk_all.Checked = _entry.GetValue("all") == "true"; loading = false; }