Anonymous
public text v1 · immutable 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;
}
}