Пример #1
0
 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();
 }
Пример #2
0
 public static void EnsureFlagRulesAreUnique(FeedToFlag ftf)
 {
     HashSet<string> unique = new HashSet<string>(ftf.FlagRules);
     ftf.FlagRules = unique.ToList();
 }