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(); }
private void RemoveSelected(object obj) { if (!string.IsNullOrEmpty(SelectedItem)) { Choices.Add(SelectedItem); Choices = new ObservableCollection <string>(Choices.OrderBy(s => s)); Selected.Remove(SelectedItem); } ToggleActivatation(); }