Ejemplo n.º 1
0
 public ViewModelFactory(
     Func<SettingsViewModel> getSettingsViewModel,
     Func<AboutViewModel> getAboutViewModel,
     UpdateViewModel.Factory getUpdateViewModel,
     ProjectRepositoryViewModel.Factory getProjectRepositoryViewModel,
     FileScanningViewModel.Factory getFileScanningViewModel,
     SolutionViewModel.Factory getSolutionViewModel)
 {
     _getSettingsViewModel = getSettingsViewModel;
     _getAboutViewModel = getAboutViewModel;
     _getUpdateViewModel = getUpdateViewModel;
     _getProjectRepositoryViewModel = getProjectRepositoryViewModel;
     _getFileScanningViewModel = getFileScanningViewModel;
     _getSolutionViewModel = getSolutionViewModel;
 }
Ejemplo n.º 2
0
        private void LoadProjects(string path)
        {
            var fileScanningViewModel = new FileScanningViewModel(_settings, path);

            _dialogManager.ShowDialog(fileScanningViewModel);

            fileScanningViewModel.Deactivated += (sender, args) => {
                if (fileScanningViewModel.Result != null)
                {
                    _projectRepository.RootPath   = path;
                    _projectRepository.RootFolder = fileScanningViewModel.Result.ProjectFolder;
                    Solution    = new SolutionViewModel(_settings, path, fileScanningViewModel.Result.Projects);
                    DisplayName = "Solutionizer -";
                    RootPath    = path;
                }
            };
        }
Ejemplo n.º 3
0
        private void LoadProjects(string path)
        {
            var fileScanningViewModel = new FileScanningViewModel(_settings, path);
            _dialogManager.ShowDialog(fileScanningViewModel);

            fileScanningViewModel.Deactivated += (sender, args) => {
                if (fileScanningViewModel.Result != null) {
                    _projectRepository.RootPath = path;
                    _projectRepository.RootFolder = fileScanningViewModel.Result.ProjectFolder;
                    Solution = new SolutionViewModel(_settings, path, fileScanningViewModel.Result.Projects);
                    DisplayName = "Solutionizer -";
                    RootPath = path;
                }
            };
        }