GoodAI.BrainSimulator.Forms.ObserverForm.UpdateView C# (CSharp) Method

UpdateView() private method

private UpdateView ( uint simulationStep ) : void
simulationStep uint
return void
        internal void UpdateView(uint simulationStep)
        {
            if (!this.IsDisposed)
            {
                peekLabel.Visible = false;

                try
                {
                    Observer.UpdateFrame(simulationStep);
                }
                catch (Exception exc)
                {
                    MyLog.ERROR.WriteLine("Observer update failed: " + exc.Message);
                }
                finally
                {
                    glControl.Invalidate();
                }

                if (Observer.AutosaveSnapshop)
                {
                    snapshotToolStripMenuItem_Click(this, EventArgs.Empty);
                }
            }
        }