public void resetDeletesStartButton() { if (btnDeletesStart.InvokeRequired) { this.Invoke(new resetDeletesStartButtonCallback(resetDeletesStartButton)); } else { btnDeletesStart.Text = "Start"; m_deletes = null; } }
public void btnDeletesStart_Click(object sender = null, EventArgs e = null) { if (btnDeletesStart.Text == "Start") { btnDeletesStart.Text = "Stop"; m_deletes = null; m_deletes = new Deletes(this); m_deletes.start(); deletesLog("\r\n"); } else { deletesLog("\r\nStopping..."); m_deletes.stop(); } }