protected override void DrawGlyphCore(ControlGraphicsInfoArgs info, ButtonEditViewInfo be)
        {
            ImageEditViewInfo info_ = be as ImageEditViewInfo;
            Image             image = null;

            if (info_.EditValue is byte[])
            {
                image = new Bitmap(RepositoryItemCustomImageEdit.GetImage(info_.EditValue as byte[]), info_.ImageSize);
            }
            else if (info_.EditValue is Image)
            {
                image = new Bitmap((Image)info_.EditValue, info_.ImageSize);
            }
            if (image == null)
            {
                base.DrawGlyphCore(info, be);
                return;
            }
            info.Cache.Paint.DrawImage(info.Graphics, image, be.GlyphBounds);
        }
 static CustomImageEdit()
 {
     RepositoryItemCustomImageEdit.RegisterCustomEdit();
 }