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; }
public MainPageViewModel(INavigationService navigationService, ILoadingDialogService loadingDialogService) : base(loadingDialogService) { _navigationService = navigationService; }
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"; }
public AboutViewModel(ILoadingDialogService loadingDialogService) : base(loadingDialogService) { Title = "About"; }
public RepositoriesViewModel(IAzureDevOpsService azureDevOpsService, ILoadingDialogService loadingDialogService) : base(loadingDialogService) { _azureDevOpsService = azureDevOpsService; Title = "Repositories"; }