void AnalyzerMainWindow_Shown(object sender, EventArgs e) { ProgramStatus.Instance.Subscribe(this); _t.Start(); _startTime = DateTime.Now; _timer.Start(); }
/// <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(); }
/// <inheritdoc /> protected override void TaskStart(IServerContext applicationContext) => Thread = mLogicThread.Start(applicationContext);