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: /// StephaneLenclud@219: /// Used to populate our action type combobox with friendly names StephaneLenclud@219: /// StephaneLenclud@219: class ItemActionType StephaneLenclud@219: { StephaneLenclud@219: public Type Type; StephaneLenclud@219: StephaneLenclud@219: public ItemActionType(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@219: return SharpLib.Utils.Reflection.GetAttribute(Type).Name; StephaneLenclud@219: } StephaneLenclud@219: } StephaneLenclud@219: }