Пример #1
0
        public LoadedViewModel(PatchingViewModel patchingView, ManageModsViewModel manageModsView, LoggingViewModel loggingView, ToolsViewModel toolsView, OtherItemsViewModel otherItemsView, Config config, PatchingManager patchingManager, BrowseImportManager browseManager, Logger logger)
        {
            PatchingView   = patchingView;
            LoggingView    = loggingView;
            ToolsView      = toolsView;
            ManageModsView = manageModsView;
            OtherItemsView = otherItemsView;

            Config           = config;
            _patchingManager = patchingManager;
            _browseManager   = browseManager;
            _logger          = logger;

            _patchingManager.PropertyChanged += (_, args) =>
            {
                if (args.PropertyName == nameof(_patchingManager.InstalledApp) && _patchingManager.InstalledApp != null)
                {
                    this.RaisePropertyChanged(nameof(AppInfo));
                    this.RaisePropertyChanged(nameof(SelectedAppText));
                }
            };
        }
Пример #2
0
 public LoadingViewModel(ProgressViewModel progressView, LoggingViewModel loggingView, Config config)
 {
     ProgressView = progressView;
     LoggingView  = loggingView;
     Config       = config;
 }