示例#1
0
 private void OnClear()
 {
     CommandCon.Clear();
     Scene.Clear();
     SignalsCon.Clear();
     Reset();
 }
示例#2
0
 private void OnLoad()
 {
     WorldCon.ConnectCons(false);
     Scene.WorldCon = WorldCon;
     Scene.AttachShapes();
     CommandCon.Clear();
     WorldCon.ConnectCons(true);
     SceneCon.RecreateSceneControl();
     SignalsCon.Load();
     Reset();
 }
示例#3
0
        // 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);
            }
        }