public object ResolveSettingWindow(IPluginMeta plugin) { if (plugin.SettingEditWindow == null) { return(plugin.SettingEditWindow); } return(_container.Resolve(plugin.SettingEditWindow)); }
public static bool IsHidden(this IPluginMeta plugin) { var attribute = plugin.GetType().GetCustomAttributes(typeof(BuiltInPluginAttribute), false).FirstOrDefault(); return(attribute != null && ((BuiltInPluginAttribute)attribute).Hide); }