public LoginViewModel(INavigationService navigation, IShowDialogService showDialogService, IFindieWebApiService findieWebApiService)
 {
     this._navigation          = navigation;
     this._showDialogService   = showDialogService;
     this._findieWebApiService = findieWebApiService;
     this.SetCommands();
 }
Exemple #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);
    }
Exemple #3
0
        public DialogService(
            IViewViewModelFactory factory,
            IShowDialogService showDialog)
        {
            Guard.ArgumentNotNull(factory, nameof(factory));
            Guard.ArgumentNotNull(showDialog, nameof(showDialog));

            this.factory    = factory;
            this.showDialog = showDialog;
        }
Exemple #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;
 }