private void btnLearn_Click(object sender, EventArgs e) { string className = txtLearnName.Text; System.Threading.ThreadPool.QueueUserWorkItem(delegate(object state) { arduinoController.Learn(className); MessageBox.Show("Learning Completed!"); }); txtLearnName.Text = ""; }
private void btnLearn_Click(object sender, EventArgs e) { arduinoController.Learn(txtLearnName.Text); MessageBox.Show("Learning Completed!"); }