Example #1
0
        public void InitializeAnimation(Canvas whereToDraw)
        {
            animationTimer           = new System.Timers.Timer(animationInterval);
            animationTimer.Elapsed  += AnimationStep;   // the method to be called
            animationTimer.AutoReset = true;
            animationTimer.Enabled   = true;

            theCircles = new AnimatedCircleGroup();
            drawCanvas = whereToDraw;   // artCanvas from the UI
            keysCanvas = new Canvas();
        }
Example #2
0
        public void InitializeAnimation(Canvas whereToDraw)
        {
            animationTimer           = new System.Timers.Timer(1000 / RingPrefs.renderFPS);
            animationTimer.Elapsed  += AnimationStep;   // the method to be called
            animationTimer.AutoReset = true;
            animationTimer.Enabled   = true;

            theCircles = new AnimatedCircleGroup();
            theCircles.drawLineOnly = drawLinesOnly;
            drawCanvas = whereToDraw;   // artCanvas from the UI
            keysCanvas = new Canvas();
        }