public override void Assign(RepositoryItem item) { base.Assign(item); RepositoryItemImageTextEdit source = item as RepositoryItemImageTextEdit; Events.AddHandler(_iconClick, source.Events[_iconClick]); Events.AddHandler(_onIconSelection, source.Events[_onIconSelection]); this.imageList = source.ImageList; this.imageIndex = source.ImageIndex; this.imageAlignment = source.imageAlignment; }
static ImageTextEdit() { RepositoryItemImageTextEdit.RegisterCustomIconTextEdit(); }