All pastes #473959 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-06 14:44 UTC
rendered paste body
        private void buttonPlayPause1_Click(object sender, EventArgs e)
        {
            if (!ThreadMade)
            {
                Thread botMainThread = new Thread(PulseCls.Pulse());
            }
            if (!HasStarted)
            {
                botMainThread.Start();
                buttonPlayPause1.Text = "Pause";
                return;
            }
            if (HasStarted)
            {
                botMainThread.Pause();
                buttonPlayPause1.Text = "Play";
                return;
            }
        }