/// <summary> /// 통신 종료 /// </summary> public void Stop() { // UI 업데이트 종료 timer1.Enabled = false; comm.Dispose(); //GC.SuppressFinalize(comm); }
// 시리얼 통신 종료 void ReadingStop() { if (comm != null || comm.actived) { comm.eDataReceive -= new EventHandler <DK1EventArgs>(comm_eDataReceive); comm.Dispose(); } }