public DbcStore(IParameterFactory parameterFactory, ITaskRunner taskRunner, IDbcSettingsProvider settingsProvider, IMessageBoxService messageBoxService, IEventAggregator eventAggregator, ICurrentCoreVersion currentCoreVersion, NullSpellService nullSpellService, CataSpellService cataSpellService, WrathSpellService wrathSpellService, DBCD.DBCD dbcd) { this.parameterFactory = parameterFactory; this.taskRunner = taskRunner; dbcSettingsProvider = settingsProvider; this.messageBoxService = messageBoxService; this.eventAggregator = eventAggregator; this.currentCoreVersion = currentCoreVersion; this.nullSpellService = nullSpellService; this.cataSpellService = cataSpellService; this.wrathSpellService = wrathSpellService; this.dbcd = dbcd; spellServiceImpl = nullSpellService; Load(); }
public DBCConfigViewModel(IDbcSettingsProvider dbcSettings, IWindowManager windowManager) { path = dbcSettings.GetSettings().Path; skipLoading = dbcSettings.GetSettings().SkipLoading; dbcVersion = dbcSettings.GetSettings().DBCVersion; dbcLocale = dbcSettings.GetSettings().DBCLocale; PickFolder = new DelegateCommand(async() => { var selectedPath = await windowManager.ShowFolderPickerDialog(Path); if (selectedPath != null) { Path = selectedPath; } }); Save = new DelegateCommand(() => { dbcSettings.UpdateSettings(new DBCSettings { Path = Path, SkipLoading = SkipLoading, DBCVersion = DBCVersion, DBCLocale = DBCLocale }); IsModified = false; }); DBCVersions = new ObservableCollection <DBCVersions>(Enum.GetValues <DBCVersions>()); DBCLocales = new ObservableCollection <DBCLocales>(Enum.GetValues <DBCLocales>()); Watch(() => DBCVersion, () => CanPickLocale); }
public DbcStore(IParameterFactory parameterFactory) { this.parameterFactory = parameterFactory; this.dbcSettingsProvider = new DbcSettingsProvider(); Load(); }
public DBCConfigViewModel(IDbcSettingsProvider dbcSettings) { SaveAction = Save; Path = dbcSettings.GetSettings().Path; SkipLoading = dbcSettings.GetSettings().SkipLoading; this.dbcSettings = dbcSettings; }
public DbcStore(IParameterFactory parameterFactory, ITaskRunner taskRunner) { this.parameterFactory = parameterFactory; this.taskRunner = taskRunner; dbcSettingsProvider = new DbcSettingsProvider(); Load(); }
public DbcStore(IParameterFactory parameterFactory, ITaskRunner taskRunner, IDbcSettingsProvider settingsProvider, ISolutionManager solutionManager) { this.parameterFactory = parameterFactory; this.taskRunner = taskRunner; dbcSettingsProvider = settingsProvider; this.solutionManager = solutionManager; Load(); }
public DbcStore(IParameterFactory parameterFactory, ITaskRunner taskRunner, IDbcSettingsProvider settingsProvider, IMessageBoxService messageBoxService, IEventAggregator eventAggregator) { this.parameterFactory = parameterFactory; this.taskRunner = taskRunner; dbcSettingsProvider = settingsProvider; this.messageBoxService = messageBoxService; this.eventAggregator = eventAggregator; Load(); }
public DBCConfigViewModel(IDbcSettingsProvider dbcSettings) { path = dbcSettings.GetSettings().Path; skipLoading = dbcSettings.GetSettings().SkipLoading; dbcVersion = dbcSettings.GetSettings().DBCVersion; Save = new DelegateCommand(() => { dbcSettings.UpdateSettings(new DBCSettings { Path = Path, SkipLoading = SkipLoading, DBCVersion = DBCVersion }); IsModified = false; }); }
public DbcStoreConfiguration(IDbcSettingsProvider dbcSettingsProvider) { this.dbcSettingsProvider = dbcSettingsProvider; }