private void addFeed()
 {
     FeedToFlag ftf = new FeedToFlag { Url = urlTB.Text };
     List<FeedToFlag> feeds = FeedToFlag.GetListFromFile(PowerFlag.SettingsFilepath);
     feeds.Add(ftf);
     FeedToFlag.SaveListToFile(PowerFlag.SettingsFilepath, feeds);
     loadFormFromFile();
 }
 public static void EnsureFlagRulesAreUnique(FeedToFlag ftf)
 {
     HashSet<string> unique = new HashSet<string>(ftf.FlagRules);
     ftf.FlagRules = unique.ToList();
 }