private void OnClear() { CommandCon.Clear(); Scene.Clear(); SignalsCon.Clear(); Reset(); }
private void OnLoad() { WorldCon.ConnectCons(false); Scene.WorldCon = WorldCon; Scene.AttachShapes(); CommandCon.Clear(); WorldCon.ConnectCons(true); SceneCon.RecreateSceneControl(); SignalsCon.Load(); Reset(); }
// Public methods public override void Connect(bool connect) { base.Connect(connect); if (connect) { ConnectEventHandlers(true); ConnectCons(true); CommandCon.Clear(); Clock.Tick += Clock_Tick; ClockStartup(); } else { ClockShutdown(); Clock.Tick -= Clock_Tick; RenderCon.InvalidateProgram(); CommandCon.Clear(); ConnectCons(false); ConnectEventHandlers(false); AppCon.Remove(this); } }