private void fmMain_FormClosed(object sender, FormClosedEventArgs e) { thread.WaitForStop(); LedHelper.Close(); img1.Dispose(); img2.Dispose(); }
private void tbDisp_Leave(object sender, EventArgs e) { tmDisp.Enabled = false; LedHelper.Close(); }