/// <summary>Store whether the plugin asset is enabled using the application settings.</summary> /// <param name="resource"></param> /// <param name="value"></param> 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(); } }
/// <summary>Get whether the plugin asset is enabled, using the application settings.</summary> /// <param name="resource"></param> /// <returns></returns> protected override bool GetIsPluginAssetEnabled(PluginAsset resource) { return(!DisabledPluginResources.Contains(resource.GetType().FullName)); }