Example #1
0
        public Form1()
        {
            InitializeComponent();

            adamGCL_IOMsg = new AdamGCL_IOMsg();
            adamGCL_IOMsg.GetDataEvent += new GetDataCallback(this.OnGetData);
        }
Example #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (adamGCL_IOMsg.IsServerStart)
     {
         adamGCL_IOMsg.Stop_Server();
     }
     adamGCL_IOMsg = null;
 }