void DrawInfoText(ControlGraphicsInfoArgs info)
        {
            IPhoneCheckEditViewInfo view = (info.ViewInfo as IPhoneCheckEditViewInfo);
            Size  infoTextSize           = view.PaintAppearance.CalcTextSizeInt(info.Cache, view.InfoText, int.MaxValue);
            Point infoTextLocation       = view.InfoTextLocation;

            infoTextLocation.Offset(-infoTextSize.Width / 2, -infoTextSize.Height / 2);
            SkinElement e = CommonSkins.GetSkin(view.LookAndFeel)[CommonSkins.SkinButton];

            view.PaintAppearance.DrawString(info.Cache, view.InfoText, new Rectangle(infoTextLocation, infoTextSize), new SolidBrush(e.Color.GetForeColor()));
        }
        void DrawButton(ControlGraphicsInfoArgs info)
        {
            IPhoneCheckEditViewInfo view = (info.ViewInfo as IPhoneCheckEditViewInfo);
            SkinElement             e    = CommonSkins.GetSkin(view.LookAndFeel)[CommonSkins.SkinButton];
            SkinElementInfo         ei   = new SkinElementInfo(e, view.ButtonRect)
            {
                ImageIndex = view.ButtonImageIndex
            };

            ObjectPainter.DrawObject(info.Cache, SkinElementPainter.Default, ei);
        }
        protected override void Assign(BaseControlViewInfo info)
        {
            base.Assign(info);
            IPhoneCheckEditViewInfo view = (info as IPhoneCheckEditViewInfo);

            if (view == null)
            {
                return;
            }
            this.infoText         = view.infoText;
            this.buttonImageIndex = view.backgroundImageIndex;
            this.buttonImageIndex = view.buttonImageIndex;
            this.backgroundRect   = view.backgroundRect;
            this.buttonRect       = view.buttonRect;
            this.infoTextLocation = view.infoTextLocation;
        }