protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            int W = ClientRectangle.Width;
            int H = ClientRectangle.Height;

            clipRectangle = new Rectangle(0, 0, W, 0);

            int side = Math.Min(W , H) - 2*ringMargin;
            int x =  (W -  side) / 2;
            int y =  (H -  side) / 2;
            int pointNum = 50;
            outCircle = new Polygon(x, y, side,side, pointNum);

            x += ringWidth;
            y += ringWidth;
            side -= 2*ringWidth;
            innerCircle = new Polygon(x, y, side,side, pointNum);
        }
Exemple #2
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     polygon = new Polygon(30, 30, 200,200, 3);
 }