示例#1
0
 public SearchPeopleViewModel(IAmSpaceClient client)
 {
     _client                  = client;
     SearchCommand            = new RelayCommand(Search);
     ClearCommand             = new RelayCommand(Clear);
     ApplyCommand             = new RelayCommand(Apply);
     SearchResultWithContract = new ObservableCollection <SearchUserResultWithContractViewModel>();
 }
示例#2
0
 public PeopleUploadViewModel(
     IAmSpaceClient client,
     IMapper mapper,
     IExcelWorker excelWorker,
     SearchPeopleViewModel searchVm,
     ProgressIndicatorViewModel progressVm,
     ChangePasswordViewModel changePasswordVm,
     IActiveDirectoryProvider activeDirectoryProvider)
 {
     ProgressVM                   = progressVm;
     _client                      = client;
     _mapper                      = mapper;
     _excelWorker                 = excelWorker;
     OpenFileCommand              = new RelayCommand(OpenFile);
     UploadDataCommand            = new RelayCommand(UploadData);
     _searchVm                    = searchVm;
     InputRows                    = new ObservableCollection <SapPersonExcelRow>();
     InputRows.CollectionChanged += InputRows_CollectionChanged;
     _changePasswordVm            = changePasswordVm;
     _activeDirectoryProvider     = activeDirectoryProvider;
     _activeDirectoryProvider.ConnectionStatusChanged += _activeDirectoryProvider_ConnectionStatusChanged;
 }
示例#3
0
 public ProfileViewModel(IAmSpaceClient client)
 {
     _client = client;
     SetUpProfile();
     LogoutCommand = new RelayCommand(LogOut);
 }