Пример #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
 }