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

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

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