public void resetFootballStartButton() { if (btnFootballStart.InvokeRequired) { this.Invoke(new resetFootballStartButtonCallback(resetFootballStartButton)); } else { btnFootballStart.Text = "Start"; m_football = null; } }
public void btnFootballStart_Click(object sender = null, EventArgs e = null) { if (btnFootballStart.Text == "Start") { btnFootballStart.Text = "Stop"; m_football = new Football(this); m_football.start(); } else { footballLog("Stopping..."); m_football.stop(); } }