Пример #1
0
 public LoginViewModel(INavigationService navigation, IShowDialogService showDialogService, IFindieWebApiService findieWebApiService)
 {
     this._navigation          = navigation;
     this._showDialogService   = showDialogService;
     this._findieWebApiService = findieWebApiService;
     this.SetCommands();
 }
Пример #2
0
    public MainWindowViewModel(IShowDialogService showDialogService)
    {
        _ShowDialogService = showDialogService;

        // Or do: _ShowDialogService = new ShowDialogService();
        // But that's not a good practice and won't let you test
        // this ViewModel properly.
        OpenPatientWindowCommand = new DelegateCommand(OnOpenPatientWindowCommandExecute);
    }
Пример #3
0
        public DialogService(
            IViewViewModelFactory factory,
            IShowDialogService showDialog)
        {
            Guard.ArgumentNotNull(factory, nameof(factory));
            Guard.ArgumentNotNull(showDialog, nameof(showDialog));

            this.factory    = factory;
            this.showDialog = showDialog;
        }
Пример #4
0
        public DialogService(
            IViewViewModelFactory factory,
            IShowDialogService showDialog,
            IGitHubContextService gitHubContextService)
        {
            Guard.ArgumentNotNull(factory, nameof(factory));
            Guard.ArgumentNotNull(showDialog, nameof(showDialog));
            Guard.ArgumentNotNull(showDialog, nameof(gitHubContextService));

            this.factory              = factory;
            this.showDialog           = showDialog;
            this.gitHubContextService = gitHubContextService;
        }
 public UserInteraction(IShowDialogService showDialogService, IMvxAndroidCurrentTopActivity topActivityService)
 {
     _showDialogService  = showDialogService;
     _topActivityService = topActivityService;
 }