public ConnectionSettings GetConnectionSettings() { ConnectionSettings settings = new ConnectionSettings(); settings.port = 3389; settings.hostname = txtHostname.Text; settings.username = txtUsername.Text; settings.domain = ""; settings.password = txtPassword.Text; return settings; }
/** * 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(); }