Server/ItemActionType.cs
author StephaneLenclud
Tue, 16 Aug 2016 12:59:32 +0200
changeset 235 ba14a29944c4
parent 219 99c407831232
permissions -rw-r--r--
Removing JSON type converter from ear manager.
Using bindings for some application settings.
     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;
     7 
     8 namespace SharpDisplayManager
     9 {
    10     /// <summary>
    11     /// Used to populate our action type combobox with friendly names
    12     /// </summary>
    13     class ItemObjectType
    14     {
    15         public Type Type;
    16 
    17         public ItemObjectType(Type type)
    18         {
    19             this.Type = type;
    20         }
    21 
    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<AttributeObject>(Type).Name;
    27         }
    28     }
    29 }