StephaneLenclud@219: using SharpLib.Ear;
StephaneLenclud@219: using System;
StephaneLenclud@219: using System.Collections.Generic;
StephaneLenclud@219: using System.Linq;
StephaneLenclud@219: using System.Text;
StephaneLenclud@219: using System.Threading.Tasks;
StephaneLenclud@219: 
StephaneLenclud@219: namespace SharpDisplayManager
StephaneLenclud@219: {
StephaneLenclud@219:     /// <summary>
StephaneLenclud@219:     /// Used to populate our action type combobox with friendly names
StephaneLenclud@219:     /// </summary>
StephaneLenclud@231:     class ItemObjectType
StephaneLenclud@219:     {
StephaneLenclud@219:         public Type Type;
StephaneLenclud@219: 
StephaneLenclud@231:         public ItemObjectType(Type type)
StephaneLenclud@219:         {
StephaneLenclud@219:             this.Type = type;
StephaneLenclud@219:         }
StephaneLenclud@219: 
StephaneLenclud@219:         public override string ToString()
StephaneLenclud@219:         {
StephaneLenclud@219:             //Get friendly action name from action attribute.
StephaneLenclud@219:             //That we then show up in our combobox
StephaneLenclud@231:             return SharpLib.Utils.Reflection.GetAttribute<AttributeObject>(Type).Name;
StephaneLenclud@219:         }
StephaneLenclud@219:     }
StephaneLenclud@219: }