Пример #1
0
        private static void InitYeloDebug(string IP)
        {
            xboxDebug = new YeloDebug.Xbox();
            // Do we really need a 5 second timeout period? How about half that?
            xboxDebug.Timeout = 2500;

            // If we are presented with an IP, use it
            if (IP.Split('.').Length == 4)
            {
                xboxDebug.ConnectToIP(IP);
            }
            // otherwise, use auto-detect
            else
            {
                System.Collections.Generic.List <DebugConnection> cons = xboxDebug.QueryXboxConnections();
                xboxDebug.Connect(cons[0].Name);
            }
            _debugName = xboxDebug.DebugName;
            _debugIP   = xboxDebug.DebugIP.ToString();
        }