Пример #1
0
 private bool FeedInputValid()
 {
     return(Validater.IsPresent(tbUrl) &&
            Validater.IsValidRss(tbUrl.Text) &&
            Validater.DropDownBoxIsSelected(cbFrekvens) &&
            Validater.DropDownBoxIsSelected(cbKategori));
 }
Пример #2
0
 private void btnSparaFeed_Click(object sender, EventArgs e)
 {
     if (Validater.DropDownBoxIsSelected(cbFrekvens) &&
         Validater.DropDownBoxIsSelected(cbKategori))
     {
         var    feedTitle  = lvFeed.FocusedItem.SubItems[1].Text;
         var    nyFrekvens = int.Parse(cbFrekvens.SelectedItem.ToString());
         string nyKategori = cbKategori.SelectedItem.ToString();
         feedList.changeFeed(feedTitle, nyKategori, nyFrekvens);
     }
 }