protected override void DrawContent(ControlGraphicsInfoArgs info) { MyProgressBarViewInfo vi = info.ViewInfo as MyProgressBarViewInfo; info.Graphics.FillRectangle(new SolidBrush(info.ViewInfo.PaintAppearance.BackColor), info.Bounds); DrawObject(info.Cache, vi.ProgressInfo); }
protected internal virtual void UpdatePercent() { MyProgressBarViewInfo vi = ViewInfo as MyProgressBarViewInfo; if (vi == null) { return; } vi.UpdateProgressInfo(vi.ProgressInfo); }
protected override void Assign(BaseControlViewInfo info) { base.Assign(info); MyProgressBarViewInfo be = info as MyProgressBarViewInfo; if (be == null) { return; } this.percents = be.percents; this.position = be.position; }