Exemple #1
0
        public void RDPConnect(string rdpIP, int w, int h)
        {
            if (rdpControl == null)
            {
                return;
            }

            Log.DebugFormat("Connecting RDPClient{0} using server '{1}', width '{2}' and height '{3}'",
                            rdpClient9 == null ? "6" : "9",
                            rdpIP,
                            w,
                            h);

            if (rdpClient9 == null)
            {
                rdpClient6.Server        = rdpIP;
                rdpClient6.DesktopWidth  = w;
                rdpClient6.DesktopHeight = h;
                rdpClient6.Connect();
            }
            else
            {
                rdpClient9.Server        = rdpIP;
                rdpClient9.DesktopWidth  = w;
                rdpClient9.DesktopHeight = h;
                rdpClient9.Connect();
            }
        }
Exemple #2
0
        public void RDPConnect(string rdpIP, int w, int h)
        {
            if (rdpClient == null)
            {
                return;
            }

            Log.DebugFormat("Connecting RDPClient9 using server '{0}', width '{1}' and height '{2}'", rdpIP, w, h);

            rdpClient.Server        = rdpIP;
            rdpClient.DesktopWidth  = w;
            rdpClient.DesktopHeight = h;
            rdpClient.Connect();
        }
Exemple #3
0
        public void RDPConnect(string rdpIP, int w, int h)
        {
            if (rdpControl == null)
            {
                return;
            }

            if (rdpClient9 == null)
            {
                Log.Debug($"Connecting RDPClient6 using server '{rdpIP}', width '{w}' and height '{h}'");
                rdpClient6.Server        = rdpIP;
                rdpClient6.DesktopWidth  = w;
                rdpClient6.DesktopHeight = h;
                rdpClient6.Connect();
            }
            else
            {
                Log.Debug($"Connecting RDPClient9 using server '{rdpIP}', width '{w}' and height '{h}'");
                rdpClient9.Server        = rdpIP;
                rdpClient9.DesktopWidth  = w;
                rdpClient9.DesktopHeight = h;
                rdpClient9.Connect();
            }
        }