示例#1
0
        private void AddEventItems(Type pObjType)
        {
            foreach (var ev in DesignerManager.GetEvents(pObjType))
            {
                var item = new ComponentBoxItemView(
                    new ComponentBoxItemModel(ev));

                this.AddItem(item);
            }
        }
示例#2
0
        private void AddRendererItems(IEnumerable <IRenderer> renderers)
        {
            foreach (IRenderer renderer in renderers)
            {
                var item = new ComponentBoxItemView(
                    new ComponentBoxItemModel(renderer));

                this.AddItem(item);
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
        private void AddFunctionItems(IEnumerable <AttributeTuple <DesignElementAttribute, MethodInfo> > functions)
        {
            foreach (var function in functions)
            {
                var item = new ComponentBoxItemView(
                    new ComponentBoxItemModel(function));

                this.AddItem(item);
            }
        }
示例#5
0
        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);
            }
        }
示例#6
0
        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);
            }
        }
示例#7
0
 private void InitializeItem(ComponentBoxItemView item)
 {
     // TODO: Init
 }
示例#8
0
 private void DestroyItem(ComponentBoxItemView item)
 {
     // TODO: Dispose
 }