public UnicodeCategory(UnicodeCategory category) { type = category.UnicodeType; name = category.Name; first = category.FirstCode; last = category.LastCode; }
public UnicodeCategory(UnicodeType unicodeType, string categoryName, int firstCode, int lastCode) { type = unicodeType; name = categoryName; first = firstCode; last = lastCode; }
public UnicodeView() { SetStyle( ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.UserPaint, true); UpdateStyles(); collection = new UnicodeCollection(); currentType = collection[UnicodeIndex.Europe]; currentCategory = collection.GetCategory(currentType); size = new Size(18, 18); SetSizeGrid(); trackingPos = -1; AutoScroll = true; HScroll = false; Size = new Size(175, 100); KryptonManager.GlobalPaletteChanged += new EventHandler(KryptonManager_GlobalPaletteChanged); RefreshPalette(); }
public IEnumerable <UnicodeCategory> GetCategories(UnicodeType unicodeType) { if (unicodeType == null) { throw new ArgumentNullException("unicodeType"); } return(categories.Where(x => x.UnicodeType.Id == unicodeType.Id)); }
public UnicodeType(UnicodeType unicodeType) { id = unicodeType.Id; name = unicodeType.Name; }
public UnicodeCategory GetCategory(UnicodeType unicodeType) { return(categories.FirstOrDefault(x => x.UnicodeType.Id == unicodeType.Id)); }