private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { try { //tp_function.STEvent -= new TrackpadFunction.StateEventHandler(tp_function_STEvent); mm_fucntion.STEvent -= new MutliMeterFunction.StateEventHandler(mm_fucntion_STEvent); mm_thread.exit(); tp_thread.exit(); } catch { } }
private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { try { mm_fucntion.CurrentMeasumentEvent -= new MutliMeterFunction.MultiMeterEventHandler(mm_fucntion_CurrentMeasumentEvent); mm_fucntion.ResultEvent -= new MutliMeterFunction.MMResultEventHandler(mm_fucntion_ResultEvent); tp_function.TPStatusEvent -= new TrackpadFunction.TPEventHandler(tp_function_TPStatusEvent); tp_function.STEvent -= new TrackpadFunction.StateEventHandler(tp_function_STEvent); mm_thread.exit(); tp_thread.exit(); } catch { } }