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}'", rdpClient6 == null ? "2" : "6", rdpIP, w, h); if (rdpClient6 == null) { rdpClient2.Server = rdpIP; rdpClient2.DesktopWidth = w; rdpClient2.DesktopHeight = h; rdpClient2.Connect(); } else { rdpClient6.Server = rdpIP; rdpClient6.DesktopWidth = w; rdpClient6.DesktopHeight = h; rdpClient6.Connect(); } }
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(); } }