Esempio n. 1
0
 public object ResolveSettingWindow(IPluginMeta plugin)
 {
     if (plugin.SettingEditWindow == null)
     {
         return(plugin.SettingEditWindow);
     }
     return(_container.Resolve(plugin.SettingEditWindow));
 }
Esempio n. 2
0
        public static bool IsHidden(this IPluginMeta plugin)
        {
            var attribute = plugin.GetType().GetCustomAttributes(typeof(BuiltInPluginAttribute), false).FirstOrDefault();

            return(attribute != null && ((BuiltInPluginAttribute)attribute).Hide);
        }