void AnalyzerMainWindow_Shown(object sender, EventArgs e)
 {
     ProgramStatus.Instance.Subscribe(this);
     _t.Start();
     _startTime = DateTime.Now;
     _timer.Start();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize all classes and set renderstates
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

#if DEBUG
            // Initialize the python console
            console = new PythonInterpreter(this, consoleFont);
            console.AddGlobal("game", this);
#endif

            windowHandle = this.Window.Handle;

            IsFixedTimeStep   = true;
            TargetElapsedTime = new TimeSpan(10000000L / 30L);

            //graphics.ApplyChanges();
            LogicThread.Start();
        }
Ejemplo n.º 3
0
 /// <inheritdoc />
 protected override void TaskStart(IServerContext applicationContext) =>
 Thread = mLogicThread.Start(applicationContext);