Animatroller.Simulator.SimulatorForm.updateTimer_Tick C# (CSharp) Method

updateTimer_Tick() private method

private updateTimer_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void updateTimer_Tick(object sender, EventArgs e)
        {
            if (Monitor.TryEnter(this.updateableControls))
            {
                try
                {
                    foreach (var control in this.updateableControls)
                    {
                        control.Update();
                    }
                }
                finally
                {
                    Monitor.Exit(this.updateableControls);
                }
            }
        }