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);
}
}
}