public SearchPeopleViewModel(IAmSpaceClient client) { _client = client; SearchCommand = new RelayCommand(Search); ClearCommand = new RelayCommand(Clear); ApplyCommand = new RelayCommand(Apply); SearchResultWithContract = new ObservableCollection <SearchUserResultWithContractViewModel>(); }
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; }
public ProfileViewModel(IAmSpaceClient client) { _client = client; SetUpProfile(); LogoutCommand = new RelayCommand(LogOut); }