Ejemplo n.º 1
0
 public static bool IsPluginPanel(Type t)
 {
     SC.GUI.Utility.PluginPanelAttribute attr = GetPluginPanelAttribute(t);
     return(attr != null &&
            typeof(SC.Interfaces.IScPluginClient).IsAssignableFrom(attr.InterfaceType) &&
            typeof(SC.GUI.Utility.PluginPanelBase).IsAssignableFrom(t));
 }
Ejemplo n.º 2
0
 public bool IsPanelForPlugin(SC.Interfaces.IScPluginClient plugin)
 {
     SC.GUI.Utility.PluginPanelAttribute attr = GetPluginPanelAttribute(pluginPanelType);
     return(attr.InterfaceType.IsInstanceOfType(plugin));
 }