private void button6_Click(object sender, EventArgs e) { if (Program.Pause) { Program.Pause = false; button6.Text = "Pause"; } else { Program.Pause = true; button6.Text = "Unpause"; } }