private void tcmsStop_Click(object sender, EventArgs e) { tcmsStart.Enabled = true; z.mutex.WaitOne(); tcmsStop.Enabled = false; }