示例#1
0
        public static void SetIcon(this ImageList @this, object type, int size = 0, Color?color = null, Brush brush = null)
        {
            var declaringType = type.GetType().DeclaringType;
            var instance      = Pictogram.GetInstance(declaringType);

            @this.SetIcon(instance, type, size, color, brush);
        }
示例#2
0
        public static void SetText(this Component @this, object type, float size = 0)
        {
            var declaringType = type.GetType().DeclaringType;
            var instance      = Pictogram.GetInstance(declaringType);

            @this.SetText(instance, type, size);
        }
示例#3
0
 public static object Convert(object value)
 {
     if (value != null)
     {
         return(Pictogram.GetInstance <T>().GetText((int)value));
     }
     return(null);
 }
示例#4
0
        public static void SetImage <T>(this Control @this, object type, int size = 0, Color?color = null, Brush brush = null) where T : Pictogram
        {
            T instance = Pictogram.GetInstance <T>();

            SetImage(@this, instance, type, size, color, brush);
        }
示例#5
0
        public static void SetIcon <T>(this NotifyIcon @this, object type, int size = 0, Color?color = null, Brush brush = null) where T : Pictogram
        {
            T instance = Pictogram.GetInstance <T>();

            SetIcon(@this, instance, type, size, color, brush);
        }
示例#6
0
        public static void SetText <T>(this Component @this, object type, float size = 0) where T : Pictogram
        {
            T instance = Pictogram.GetInstance <T>();

            SetText(@this, instance, type, size);
        }
示例#7
0
 public EmptyLayout()
 {
     Pictogram = Pictogram.GetInstance <T>();
     InitializeComponent();
 }
示例#8
0
 public ViewCell()
 {
     Pictogram = Pictogram.GetInstance <T>();
     InitializeComponent();
 }
示例#9
0
 public ChevronViewCell()
     : base()
 {
     ChevronPictogram = Pictogram.GetInstance <TC>();
     InitializeComponent();
 }