コード例 #1
0
        protected GeneralOptionModel(GeneralOptionProvider generalOptionProvider)
        {
            _generalOptionProvider = generalOptionProvider;
#if DEBUG
            ThreadHelper.JoinableTaskFactory.Run(DeleteCollectionAsync);
#endif
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 private void FileExtensionChanged(GeneralOptionProvider generalOptionProvider) =>
 ThreadHelper.JoinableTaskFactory.RunAsync(() => ChangeRadeonExtensionsAsync(generalOptionProvider.Asm1FileExtensions, generalOptionProvider.Asm2FileExtensions));
コード例 #4
0
 public GeneralOptionPage()
 {
     _optionProvider = GeneralOptionProvider.Instance;
 }