public GroupsViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; AddGroupCmd = new RelayCommand(AddGroup); UpdateGroupCmd = new RelayCommand(UpdateGroup); DeleteGroupCmd = new RelayCommand(DeleteGroup); }
public PolicyViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; AddPolicyCmd = new RelayCommand(AddPolicy); UpdatePolicyCmd = new RelayCommand(UpdatePolicy); DeletePolicyCmd = new RelayCommand(DeletePolicy); }
public DeviceViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; AddDeviceCmd = new RelayCommand(AddDevice); UpdateDeviceCmd = new RelayCommand(UpdateDevice); DeleteDeviceCmd = new RelayCommand(DeleteDevice); }
public LoginViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; AddLoginCmd = new RelayCommand(AddLogin); UpdateLoginCmd = new RelayCommand(UpdateLogin); DeleteLoginCmd = new RelayCommand(DeleteLogin); }
public EventLogViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; DateFrom = DateTo = DateTime.Now; FilterLogCmd = new RelayCommand(FilterLog); DeleteLogByFilterCmd = new RelayCommand(DeleteLogByFilter); DeleteAllLogCmd = new RelayCommand(DeleteAllLog); }
public LoginDevicesViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; SaveLoginDevicesCmd = new RelayCommand(SaveLoginDevices); GetLoginIdAndDeviceIdDct(); UpdateLoginDeviceCollection(); if (LoginCollection != null && LoginCollection.Any()) { SelectedLogin = LoginCollection.FirstOrDefault(); } }
public PolicySetViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; _ppsClientViewModel.OnEmbeddedCollectionRefreshed += _ppsClientViewModel_OnEmbeddedCollectionRefreshed; SavePolicySetCmd = new RelayCommand(SavePolicySet); GetGroupIdAndPolicyIdDct(); UpdateSelectedPolicyCollection(); IsUserPolicySet = true; if (LoginCollection != null && LoginCollection.Any()) { SelectedLogin = LoginCollection.FirstOrDefault(); } }
public ViewModelLocator() { _ppsClientVm = new PpsClientViewModel(ServiceProxy); _ppsClientVm.OnMessageSended += PpsClientVm_OnMessageSended; StartVm = new StartViewModel(_ppsClientVm); DeviceVm = new DeviceViewModel(_ppsClientVm); EventVm = new EventViewModel(_ppsClientVm); EventLogVm = new EventLogViewModel(_ppsClientVm); GroupVm = new GroupsViewModel(_ppsClientVm); LoginVm = new LoginViewModel(_ppsClientVm); LoginDevicesVm = new LoginDevicesViewModel(_ppsClientVm); PolicyVm = new PolicyViewModel(_ppsClientVm); PolicySetVm = new PolicySetViewModel(_ppsClientVm); UsersVm = new UsersViewModel(_ppsClientVm); ClearLogCmd = new RelayCommand(ClearLog); StartVm.OnLoginApplied += StartVm_OnLoginApplied; }
public StartViewModel(IPpsClientViewModel ppsClientViewModel) { _ppsClientViewModel = ppsClientViewModel; ApplyLoginCmd = new RelayCommand(ApplyLogin); }