public DepartmentSelectorView(IApplicationStateSetter applicationStateSetter, IApplicationState applicationState, IUserService userService) { InitializeComponent(); _applicationStateSetter = applicationStateSetter; DataContext = new DepartmentSelectorViewModel(applicationState, _applicationStateSetter, userService); }
public DepartmentButtonViewModel(DepartmentSelectorViewModel parentViewModel, IApplicationState applicationState) { _parentViewModel = parentViewModel; _applicationState = applicationState; DepartmentSelectionCommand = new CaptionCommand <string>("Select", OnSelectDepartment); }