public GetComponentTypes ( ) : Stetic.ComponentType[] | ||
Результат | Stetic.ComponentType[] |
public ComponentType[] GetComponentTypes()
{
ArrayList types = new ArrayList ();
ArrayList typeNames = ProjectBackend.GetComponentTypes ();
for (int n=0; n<typeNames.Count; n++)
types.Add (app.GetComponentType ((string) typeNames [n]));
// Global action groups
foreach (ActionGroupComponent grp in GetActionGroups ()) {
foreach (ActionComponent ac in grp.GetActions ())
types.Add (new ComponentType (app, ac));
}
return (ComponentType[]) types.ToArray (typeof(ComponentType));
}
public ComponentType[] GetComponentTypes() { if (!disposed) { ArrayList types = new ArrayList(); types.AddRange(project.GetComponentTypes()); // Add actions from the local action groups WidgetComponent c = rootWidget as WidgetComponent; if (c != null) { foreach (ActionGroupComponent grp in c.GetActionGroups()) { foreach (ActionComponent ac in grp.GetActions()) { types.Add(new ComponentType(app, ac)); } } } return((ComponentType[])types.ToArray(typeof(ComponentType))); } else { return(new ComponentType[0]); } }