public NavPageViewModel( ICustomDialogService dialogService, INavigationService navigationService, IMessenger messenger, IUserCredentialService userCredentialService, IMapper mapper, IMiraiNotesDataService dataService, IAppSettingsService appSettings, IBackgroundTaskManagerService backgroundTaskManager, ILogger logger, ITelemetryService telemetryService) { _dialogService = dialogService; _messenger = messenger; _navigationService = navigationService; _userCredentialService = userCredentialService; _mapper = mapper; _dataService = dataService; _appSettings = appSettings; _backgroundTaskManager = backgroundTaskManager; _telemetryService = telemetryService; _logger = logger.ForContext <NavPageViewModel>(); RegisterMessages(); SetCommands(); }
public AddCustomerDialogViewModel(ICustomDialogService customDialogService) { _customDialogService = customDialogService; SaveCustomerCommand = new DelegateCommand(SaveCustomer); CloseCommand = new DelegateCommand(CloseDialog); }
public TransactionViewModel(INavService navService, INetworkService netService, IDatabaseService db, ICustomDialogService dialog) : base(navService, netService, db, dialog) { IsBusy = false; JsonContent = new SupportFormModel(); var location = DependencyService.Get <ILocationInterface>(); // DependencyService.Get<ILocationInterface>().InitialService(); }
public AuthorizationHandler( IUserCredentialService userCredentialService, IGoogleApiService googleAuthService, ICustomDialogService dialogService) { _userCredentialService = userCredentialService; _googleAuthService = googleAuthService; _dialogService = dialogService; InnerHandler = new HttpClientHandler(); }
public MasterPageViewModel(INavigationService navigationService, ILoginService loginService, ICustomDialogService dialogService) : base(navigationService) { _navigationService = navigationService; _loginService = loginService; _dialogService = dialogService; NavigateCommand = new DelegateCommand <string>(Navigate); GetUserMobile(); }
public LoginPageViewModel(INavigationService navigationService, ILoginService loginService, ICustomDialogService dialogService) : base(navigationService) { _loginService = loginService; _navigationService = navigationService; _dialogService = dialogService; IsBusy = false; LoginCommand = new DelegateCommand(DoLogin); }
public AppActors(INavService navService, INetworkService netService, IDatabaseService db, ICustomDialogService dialog) : base() { this._navigationService = navService; this._networkService = netService; this._db = db; this._dialog = dialog; IsBusy = false; SetupProfile(); }
public MainViewModel(IDialogService dialogService, IFileSaverService fileSaverService, IFileLoaderService fileLoaderService, ICustomDialogService customDialogService) { _dialogService = dialogService; _fileSaverService = fileSaverService; _fileLoaderService = fileLoaderService; _customDialogService = customDialogService; StudentNoteViewModel = new StudentNoteViewModel(); PhoneNoteViewModel = new PhoneNoteViewModel(); }
public UserSettingsPageViewModel(INavigationService navigationService, IApplicationUserService applicationUserService, ICustomDialogService dialogService) : base(navigationService) { Title = "Settings"; _applicationUserService = applicationUserService; _dialogService = dialogService; DisplayName = _applicationUserService.DisplayName; Name = _applicationUserService.Name; Validate(); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="pageDialogServece">Prismのダイアログサービス</param> public MainPageViewModel(IPageDialogService pageDialogServece, IDependencyService dependencyService) { _customDialogService = dependencyService.Get <ICustomDialogService>(); _pageDialogService = pageDialogServece; // カスタムダイアログ表示コマンドの購読。 ShowCostomDialogCommand = new AsyncReactiveCommand(); ShowCostomDialogCommand.Subscribe(async _ => await OnShowCustomDialogCommandAsync()); // 照合ダイアログ表示コマンド(全部)の購読。 ShowCollationCommand = new AsyncReactiveCommand(); ShowCollationCommand.Subscribe(async _ => await OnShowCollationCommandAsync()); // 照合ダイアログ表示コマンド(エラーなし)の購読。 ShowNonErrorCommand = new AsyncReactiveCommand(); ShowNonErrorCommand.Subscribe(async _ => await OnShowCollationNonErrorCommandAsync()); }
public NewTaskPageViewModel( ICustomDialogService dialogService, IMessenger messenger, IMapper mapper, IMiraiNotesDataService dataService, INotificationService toastManager, IAppSettingsService appSettings) { _dialogService = dialogService; _messenger = messenger; _mapper = mapper; _dataService = dataService; _notificationService = toastManager; AppSettings = appSettings; RegisterMessages(); SetCommands(); }
public MainViewModel(IRemindersRepository repo, IDialogCoordinator dialogService, ICustomDialogService customDialogService) { _remindersRepo = repo; _dialogService = dialogService; _customDialogService = customDialogService; SelectedPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "reminders.xml"); SortedReminders = CollectionViewSource.GetDefaultView(_remindersRepo.Reminders); SortedReminders.SortDescriptions.Add(new SortDescription("NextAppearanceTime", ListSortDirection.Ascending)); DispatcherTimerSetup(); SaveCommand = new RelayCommand(SaveReminders); CreateCommand = new RelayCommand(CreateReminder); DeleteCommand = new RelayCommand(DeleteReminder); SetPathCommand = new RelayCommand(SetPath); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public HomeViewModel(ICustomDialogService dialogService, SettingsViewModel settingsViewModel) { _dialogService = dialogService; _videoCaptureManager = new VideoCaptureManager(CameraId); _videoCaptureManager.NewImageComplete += videoCaptureManager_OnNewImageComplete; _iotHubPublisher = new IotHubPublisher(IotHubHostName, DeviceId, SharedAccessKey); _faceDetectionConfigFilePath = Path.Combine(_configFileDirectory, _faceDetectionConfig); _eyeDetectionConfigFilePath = Path.Combine(_configFileDirectory, _eyeDetectionConfig); _timerFaceDetectionProcess = new DispatcherTimer(); _timerFaceDetectionProcess.Tick += new EventHandler(timerFaceDetectionProcess_tick); _timerFaceDetectionProcess.Interval = new TimeSpan(0, 0, 0, Properties.Settings.Default.FaceDetectionProcessInSeconds, 0); SettingsViewModel = settingsViewModel; DetectionMode = DetectionModeEnum.OpenCV; DetectionInfo = new DetectionInfo(); }
public CustomerListPageViewModel(INavigationService navigationService, ICustomerService customerService, ICustomDialogService customDialogService, IDialogService dialogService, ILoginService loginService) : base(navigationService) { Title = "Kişiler"; _navigationService = navigationService; _customerService = customerService; _customDialogService = customDialogService; _dialogService = dialogService; AddCustomerCommand = new DelegateCommand(AddCustomer); PerformSearchCommand = new DelegateCommand <string>(PerformSearch); PreviousPageCommand = new DelegateCommand(PreviousPage); NextPageCommand = new DelegateCommand(NextPage); FirstPageCommand = new DelegateCommand(FirstPage); LastPageCommand = new DelegateCommand(LastPage); Init(); }
/// <summary> /// コンストラクタ /// </summary> public CollationDialogUtility() { _dialogService = DependencyService.Get <ICustomDialogService>(); }
public AppActors(ICustomDialogService dialog) { this.dialog = dialog; SetupProfile(); }
public AuthViewModel(INavService navService, INetworkService netService, IDatabaseService db, ICustomDialogService dialog) : base(navService, netService, db, dialog) { }
public DialogService(IResourceService resourceService, ICustomDialogService customDialogService) { this.resourceService = resourceService; this.customDialogService = customDialogService; }