/// <summary> /// Adds the state to context. /// </summary> /// <param name="stateKvp">The state KVP.</param> private void AddStateToContext(SelectListItem stateKvp) { SelectedStates.AddNewItem(stateKvp); AvailableStates.Remove(stateKvp); AvailableStates.MoveCurrentToFirst(); SelectedStates.CommitNew(); ApplyContextCommand.RaiseCanExecuteChanged(); }
public void AddResetState(string state) { if (state == null) { return; } AvailableStates.Remove(state); ResetStates.Add(state); _statesRepository.SetResetStates(ResetStates.ToArray()); }
public void AddFilteredState(string state) { if (state == null) { return; } AvailableStates.Remove(state); FilteredStates.Add(state); _statesRepository.SetFilteredStates(FilteredStates.ToArray()); }