author | StephaneLenclud |
Fri, 29 Jul 2016 13:09:38 +0200 | |
changeset 227 | 4a03cc6f41b0 |
child 231 | 4c706feaf706 |
permissions | -rw-r--r-- |
1 using SharpLib.Ear;
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
8 namespace SharpDisplayManager
9 {
10 /// <summary>
11 /// Used to populate our action type combobox with friendly names
12 /// </summary>
13 class ItemActionType
14 {
15 public Type Type;
17 public ItemActionType(Type type)
18 {
19 this.Type = type;
20 }
22 public override string ToString()
23 {
24 //Get friendly action name from action attribute.
25 //That we then show up in our combobox
26 return SharpLib.Utils.Reflection.GetAttribute<AttributeAction>(Type).Name;
27 }
28 }
29 }