private void OnTimer(Object myObject, EventArgs myEventArgs) { graph.UpdateState(); labelState.Text = graph.State; labelPosition.Text = graph.Positions; Invalidate(); }