private void AddEventItems(Type pObjType) { foreach (var ev in DesignerManager.GetEvents(pObjType)) { var item = new ComponentBoxItemView( new ComponentBoxItemModel(ev)); this.AddItem(item); } }
private void AddRendererItems(IEnumerable <IRenderer> renderers) { foreach (IRenderer renderer in renderers) { var item = new ComponentBoxItemView( new ComponentBoxItemModel(renderer)); this.AddItem(item); } }
private void AddComponentItems(IEnumerable <AttributeTuple <DesignElementAttribute, Type> > componentTypes) { foreach (var attr in componentTypes) { var item = new ComponentBoxItemView( new ComponentBoxItemModel(new ItemDropRequest(attr.Element))); this.AddItem(item); } }
private void AddFunctionItems(IEnumerable <AttributeTuple <DesignElementAttribute, MethodInfo> > functions) { foreach (var function in functions) { var item = new ComponentBoxItemView( new ComponentBoxItemModel(function)); this.AddItem(item); } }
private void AddComponentItems(IEnumerable <AttributeTuple <DesignElementAttribute, Type> > componentTypes) { foreach (var attr in componentTypes) { var mods = Storyboard.ParseMods(attr.Attribute.ToolBoxCategories); if (mods.HasValue && !mods.Value.HasFlag(this.Mode)) { continue; } var item = new ComponentBoxItemView( new ComponentBoxItemModel(new ItemDropRequest(attr.Element))); this.AddItem(item); } }
private void AddFunctionItems(IEnumerable <AttributeTuple <DesignElementAttribute, MethodInfo> > functions) { foreach (var attr in functions) { var mods = Storyboard.ParseMods(attr.Attribute.ToolBoxCategories); if (mods.HasValue && !mods.Value.HasFlag(this.Mode)) { continue; } var item = new ComponentBoxItemView( new ComponentBoxItemModel(attr)); this.AddItem(item); } }
private void InitializeItem(ComponentBoxItemView item) { // TODO: Init }
private void DestroyItem(ComponentBoxItemView item) { // TODO: Dispose }