Example #1
0
        private void cmdReadAsync_Click(object sender, EventArgs e)
        {
            int CancelID;

            int[] aE = new int[2];
            try
            {
                theGroup.AsyncRead(HandlesServer, 55667788, out CancelID, out aE);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Example #2
0
        public void readAsyn(int[] arryHandleServer, out String[] arryResult)
        {
            int[] ae;
            arryResult = new String[30];
            int CancelID;

            try
            {
                if (arryHandleServer != null)
                {
                    TheGrp.AsyncRead(arryHandleServer, 5567788, out CancelID, out ae);
                }
            }
            catch (Exception e)
            {
                System.Windows.Forms.MessageBox.Show(e.ToString());
            }
        }