Exemplo n.º 1
0
        public MainWindowViewModel(IWorkspaceManager workspaceManager,
                                   IDataTransferService dataTransferService,
                                   IProgressBarService progressBarService,
                                   IDialogService dialogService)
        {
            WorkspaceManager     = workspaceManager;
            _dataTransferService = dataTransferService;
            _progressBarService  = progressBarService;
            _dialogService       = dialogService;

            CreateCommands();

            workspaceManager.WorkspaceSelected += (ws) => SelectedWorkspace = ws;
        }
Exemplo n.º 2
0
 public ViewModelService(IDialogService dialogService, IThemeService themeService, INotificationService notificationService, IProgressBarService progressBarService, IConfigurationService configurationService, IInstallService installService, IProductService productService, IMsiService msiService, IInstallerFileBundleProviderFactory installerFileBundleProviderFactory, IUriService uriService, IClipboardService clipboardService, IIOService ioService, string tmpFolderPath)
 {
     _dialogService        = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
     _themeService         = themeService ?? throw new ArgumentNullException(nameof(themeService));
     _notificationService  = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     _progressBarService   = progressBarService ?? throw new ArgumentNullException(nameof(progressBarService));
     _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService));
     _installService       = installService ?? throw new ArgumentNullException(nameof(installService));
     _productService       = productService ?? throw new ArgumentNullException(nameof(productService));
     _msiService           = msiService ?? throw new ArgumentNullException(nameof(msiService));
     _installerFileBundleProviderFactory = installerFileBundleProviderFactory ?? throw new ArgumentNullException(nameof(installerFileBundleProviderFactory));
     _uriService       = uriService ?? throw new ArgumentNullException(nameof(uriService));
     _clipboardService = clipboardService ?? throw new ArgumentNullException(nameof(clipboardService));
     _ioService        = ioService ?? throw new ArgumentNullException(nameof(ioService));
     if (String.IsNullOrEmpty(tmpFolderPath))
     {
         throw new ArgumentNullException(nameof(tmpFolderPath));
     }
     _downloadFolderPath = GetDownloadFolderPath(tmpFolderPath);
     _logFolderPath      = GetLogFolderPath(tmpFolderPath);
 }
Exemplo n.º 3
0
 public InstallationViewModel(IProgressBarService progressBarService)
 {
     _progressBarService = progressBarService ?? throw new ArgumentNullException(nameof(progressBarService));
     PropertyChanged    += OnPropertyChanged;
 }