Example #1
0
        private void OnIdle(TimeSpan delta, uint framesPerSecond)
        {
            var idle = Idle;

            if (idle != null)
            {
                var eventArgs = new ApplicationIdleEventArgs(delta, framesPerSecond);
                idle(this, eventArgs);
            }
        }
Example #2
0
        private void OnIdle(TimeSpan delta)
        {
            var idle = Idle;

            if (idle != null)
            {
                var eventArgs = new ApplicationIdleEventArgs(delta);
                idle(this, eventArgs);
            }
        }