示例#1
0
        public AppViewModel(ILoadingDialogService loadingService, IAboutDialogService aboutService)
        {
            AboutService   = aboutService;
            LoadingService = loadingService;

            _currentView = new IntroPageViewModel();
            _mutex       = new AutoResetEvent(false);
            _worker      = new BackgroundWorker()
            {
                WorkerReportsProgress      = true,
                WorkerSupportsCancellation = true,
            };

            _worker.DoWork             += BackgroundWorker_DoWork;
            _worker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted;
            _worker.ProgressChanged    += BackgroundWorker_ProgressChanged;

            AboutCommand = new CustomCommand(AboutCommand_CanExecute, AboutCommand_Execute);
            FinishStep   = new CustomCommand(FinishStep_CanExecute, FinishStep_Execute);
            NextStep     = new CustomCommand(NextStep_CanExecute, NextStep_Execute);
            PrevStep     = new CustomCommand(PrevStep_CanExecute, PrevStep_Execute);
        }
 public BaseViewModel(ILoadingDialogService loadingDialogService)
 {
     _loadingDialogService = loadingDialogService;
 }
示例#3
0
 public MainPageViewModel(INavigationService navigationService, ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     _navigationService = navigationService;
 }
示例#4
0
 public SettingsViewModel(IAzureDevOpsSettings azureDevOpsSettings, ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     _azureDevOpsSettings = azureDevOpsSettings;
     Title = "Settings";
 }
 public BuildsViewModel(IAzureDevOpsService azureDevOpsService, ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     _azureDevOpsService = azureDevOpsService;
     Title = "Builds";
 }
 public ProjectsViewModel(INavigationService navigationService, IAzureDevOpsService azureDevOpsService, IAzureDevOpsSettings azureDevOpsSettings, ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     _azureDevOpsService  = azureDevOpsService;
     _navigationService   = navigationService;
     _azureDevOpsSettings = azureDevOpsSettings;
     Title = "Projects";
 }
示例#7
0
 public AboutViewModel(ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     Title = "About";
 }
 public RepositoriesViewModel(IAzureDevOpsService azureDevOpsService, ILoadingDialogService loadingDialogService) : base(loadingDialogService)
 {
     _azureDevOpsService = azureDevOpsService;
     Title = "Repositories";
 }