Alexandria.AlexandriaManager.SetIsPluginAssetEnabled C# (CSharp) Méthode

SetIsPluginAssetEnabled() protected méthode

Store whether the plugin asset is enabled using the application settings.
protected SetIsPluginAssetEnabled ( PluginAsset resource, bool value ) : void
resource Glare.Assets.PluginAsset
value bool
Résultat void
        protected override void SetIsPluginAssetEnabled(PluginAsset resource, bool value)
        {
            if (value != GetIsPluginAssetEnabled(resource)) {
                if (value)
                    DisabledPluginResources.Remove(GetType().FullName);
                else
                    DisabledPluginResources.Add(GetType().FullName);
                Properties.Settings.Default.Save();
            }
        }