예제 #1
0
        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);
        }
예제 #3
0
 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();
 }
예제 #4
0
 public AuthorizationHandler(
     IUserCredentialService userCredentialService,
     IGoogleApiService googleAuthService,
     ICustomDialogService dialogService)
 {
     _userCredentialService = userCredentialService;
     _googleAuthService     = googleAuthService;
     _dialogService         = dialogService;
     InnerHandler           = new HttpClientHandler();
 }
예제 #5
0
        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);
        }
예제 #7
0
 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();
 }
예제 #8
0
 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();
        }
예제 #10
0
        /// <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());
        }
예제 #11
0
        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();
        }
예제 #12
0
        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);
        }
예제 #13
0
        /// <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>();
 }
예제 #16
0
 public AppActors(ICustomDialogService dialog)
 {
     this.dialog = dialog;
     SetupProfile();
 }
예제 #17
0
 public AuthViewModel(INavService navService, INetworkService netService,
                      IDatabaseService db, ICustomDialogService dialog) : base(navService, netService, db, dialog)
 {
 }
예제 #18
0
 public DialogService(IResourceService resourceService, ICustomDialogService customDialogService)
 {
     this.resourceService     = resourceService;
     this.customDialogService = customDialogService;
 }