public Form1() { InitializeComponent(); adamGCL_IOMsg = new AdamGCL_IOMsg(); adamGCL_IOMsg.GetDataEvent += new GetDataCallback(this.OnGetData); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (adamGCL_IOMsg.IsServerStart) { adamGCL_IOMsg.Stop_Server(); } adamGCL_IOMsg = null; }