LinkOneToAnother() 개인적인 메소드

private LinkOneToAnother ( ushort one, ushort another ) : int
one ushort
another ushort
리턴 int
예제 #1
0
        //设置监听
        private void setListen(LineInfo line)
        {
            LineInfo anther = null;

            try
            {
                anther = Lines[line.ListenNum];
            }
            catch (Exception e)
            {
                return;
            }
            if (anther != null && anther.State == (ushort)state.CH_CONNECTED)
            {
                int ren = InvokeVcDll.LinkOneToAnother(line.Number, anther.Number);
                log.Debug(line.Number + "监听" + anther.Number + ",返回值:" + ren);
                ren = InvokeVcDll.LinkOneToAnother(line.Number, (ushort)anther.ConnectToLine);
                log.Debug(line.Number + "监听" + anther.ConnectToLine + ",返回值:" + ren);
            }
        }