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); }
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); }
public static object Convert(object value) { if (value != null) { return(Pictogram.GetInstance <T>().GetText((int)value)); } return(null); }
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); }
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); }
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); }
public EmptyLayout() { Pictogram = Pictogram.GetInstance <T>(); InitializeComponent(); }
public ViewCell() { Pictogram = Pictogram.GetInstance <T>(); InitializeComponent(); }
public ChevronViewCell() : base() { ChevronPictogram = Pictogram.GetInstance <TC>(); InitializeComponent(); }