Esempio n. 1
0
 private void RemoveAllSelected(object obj)
 {
     foreach (string ability in Selected)
     {
         Choices.Add(ability);
     }
     Selected = new ObservableCollection <string>();
     Choices  = new ObservableCollection <string>(Choices.OrderBy(s => s));
     ToggleActivatation();
 }
Esempio n. 2
0
 private void RemoveSelected(object obj)
 {
     if (!string.IsNullOrEmpty(SelectedItem))
     {
         Choices.Add(SelectedItem);
         Choices = new ObservableCollection <string>(Choices.OrderBy(s => s));
         Selected.Remove(SelectedItem);
     }
     ToggleActivatation();
 }