public MasterPasswordQueryViewModel(NavigationService navigation, ISeparatedQueryHandler <AuthenticateMasterPasswordQuery, bool> authenticateHandler) { _navigation = navigation; Password = string.Empty; _authenticateHandler = authenticateHandler; PasswordBoxKeyDownCommand = new DelegateCommand(PasswordBoxKeyDownCommandExecute, PasswordBoxKeyDownCommandCanExecute); }
public ProfileDetailViewModel(INavigationService navigation, ISeparatedQueryHandler <GetProfileDetailQuery, GetProfileDetailResult> getProfileDetailHandler) { _navigation = navigation; _getProfileDetailHandler = getProfileDetailHandler; CopyAccountCommand = new DelegateCommand(CopyAccountCommand_Execute, CopyAccountCommand_CanExecute); CopyPasswordCommand = new DelegateCommand(CopyPasswordCommand_Execute, CopyPasswordCommand_CanExecute); EditProfileCommand = new DelegateCommand(EditProfileCommand_Execute, EditProfileCommand_CanExecute); }
public ProfileListViewModel( INavigationService navigation, ISeparatedQueryHandler <GetAllProfilesQuery, GetAllProfilesResult> getAllProfilesHandler, ISeparatedQueryHandler <GetProfilesByNameQuery, GetProfilesByNameResult> getProfilesByNameHandler, ISeparatedCommandHandler <LoadProfileDetailsCommand> updateProfileDetailsHandler, ISeparatedCommandHandler <DeleteProfileCommand> deleteProfileHandler, ProfileDetailViewModel profileDetailViewModel ) { _navigation = navigation; _getAllProfilesHandler = getAllProfilesHandler; _getProfilesByNameHandler = getProfilesByNameHandler; _updateProfileDetailsHandler = updateProfileDetailsHandler; _profileDetailViewModel = profileDetailViewModel; _deleteProfileHandler = deleteProfileHandler; CreateProfileCommand = new DelegateCommand(CreateProfileCommandExecute); DeleteProfileCommand = new DelegateCommand <int>(DeleteProfileCommandExecute); RefreshProfiles(); }