protected GeneralOptionModel(GeneralOptionProvider generalOptionProvider) { _generalOptionProvider = generalOptionProvider; #if DEBUG ThreadHelper.JoinableTaskFactory.Run(DeleteCollectionAsync); #endif }
private void InstructionOptionSave(WritableSettingsStore settingsStore) { if (GeneralOptionProvider.IsDefaultInstructionPaths(_generalOptionProvider.InstructionsPaths)) { return; } if (!settingsStore.CollectionExists(InstructionCollectionName)) { settingsStore.CreateCollection(InstructionCollectionName); } WriteSetting(settingsStore, InstructionCollectionName, _generalOptionProvider.InstructionsPaths, nameof(_generalOptionProvider.InstructionsPaths)); }
private void FileExtensionChanged(GeneralOptionProvider generalOptionProvider) => ThreadHelper.JoinableTaskFactory.RunAsync(() => ChangeRadeonExtensionsAsync(generalOptionProvider.Asm1FileExtensions, generalOptionProvider.Asm2FileExtensions));
public GeneralOptionPage() { _optionProvider = GeneralOptionProvider.Instance; }