示例#1
0
        public uc_ball(Graphics _g, _Invalidate __invalidate, Color defColor, Color erColor, int X, int Y)
        {
            g = _g;
            pause_ticks = 0;
            erase_coords = coords;

            coords = new Point(X, Y);
            def_color = new SolidBrush(defColor);
            er_color = new SolidBrush(erColor);
            th_motion = new Thread(motion);
            invalidat = __invalidate;

            BitmapsInit();

            coordsChanged += draw;
            motionComplete += uc_ball_motionComplete;

            motionFinish = false;
            motionCounter = 0;
        }
示例#2
0
 public uc_ball(Graphics _g, _Invalidate __invalidate, int X, int Y)
     : this(_g, __invalidate, Color.Red, Color.White, X, Y)
 {
 }
示例#3
0
 public uc_ball(Graphics _g, _Invalidate __invalidate)
     : this(_g, __invalidate, Color.Red, Color.White, 0, 0)
 {
 }