public override void UpdateBeforeSimulation() { ProfilerShort.Begin("MyToolbarComponent.UpdateBeforeSimulation"); try { using (Stats.Generic.Measure("Toolbar.Update()")) { UpdateCurrentToolbar(); if (CurrentToolbar != null) { CurrentToolbar.Update(); } } } finally { ProfilerShort.End(); } base.UpdateBeforeSimulation(); }