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