Paint.PaintApp.Update C# (CSharp) Method

Update() protected method

Called often. Allows us to handle any user input (gestures on screen) and/or game time related work - e.g. moving an animation character based on elapsed time since last called etc
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime /// Allows you to monitor time passed since last draw ///
return void
        protected override void Update(GameTime gameTime)
        {
            switch (this.paintMode)
            {
                case PaintMode.Paint:
                    this.HandleInput();
                    break;

                case PaintMode.Exiting:
                    // We are in the process of exiting
                    break;
            }

            base.Update(gameTime);
        }