/** * Connect to FreeRDP server, start thread */ public void Connect(string hostname, int port, string username, string domain, string password) { rdp.SetUpdateInterface(this); rdp.SetPrimaryUpdateInterface(this); rdp.Connect(hostname, port, username, domain, password); procRunning = true; thread.Start(); }
/** * Connect to FreeRDP server, start thread */ public void Connect(string hostname, string domain, string username, string password, int port = 3389, ConnectionSettings settings = null) { rdp.SetUpdateInterface(this); rdp.SetPrimaryUpdateInterface(this); this.settings = settings; rdp.Connect(hostname, domain, username, password, port, settings); procRunning = true; thread.Start(); }
/** * Connect to FreeRDP server, start thread */ public void Connect(ConnectionSettings settings) { rdp.SetUpdateInterface(this); rdp.SetPrimaryUpdateInterface(this); this.settings = settings; rdp.Connect(settings.hostname, settings.port, settings.username, settings.domain, settings.password); procRunning = true; thread.Start(); }
public MainWindow() { InitializeComponent(); _rdp = new RDP(); _rdpPaintUpdates = new RdpPaintUpdates(_rdp); _rdp.ErrorInfo += Rdp_ErrorInfo; _rdp.Terminated += Rdp_Terminated; _rdp.SetUpdateInterface(_rdpPaintUpdates); _rdp.SetPrimaryUpdateInterface(_rdpPaintUpdates); UpdateStatusLabel(); }