Ejemplo n.º 1
0
 public void RemoveSuggestion(SuggestionTypes types, string suggestion)
 {
     if (_suggestions[types].Contains(suggestion))
     {
         _suggestions[types].Remove(suggestion);
         Save();
     }
 }
Ejemplo n.º 2
0
 public void AddSuggestion(SuggestionTypes type, string suggestion)
 {
     if (!_suggestions[type].Contains(suggestion))
     {
         _suggestions[type].Add(suggestion);
         Save();
     }
 }
Ejemplo n.º 3
0
 public ObservableCollection <string> GetSuggestionCollection(SuggestionTypes type)
 {
     return(new ObservableCollection <string>(_suggestions[type]));
 }