private void HandlePopulationGraphMiddle() { if (ActivateGraphics && DrawGraphicsMethod != null) { DrawGraphicsMethod.Invoke(Population, PopulationGraphFirstDraw); PopulationGraphFirstDraw = false; } }
/// <summary> /// Gets called when the timer thread needs to render a new Scene / frame. /// </summary> /// <param name="graphics">A Graphics surface.</param> protected virtual void OnDrawGraphics(Graphics graphics) { graphics.BeginScene(); DrawGraphics?.Invoke(this, new DrawGraphicsEventArgs(graphics)); graphics.EndScene(); }