Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
        /**
         * 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();
        }
Beispiel #3
0
        /**
         * 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();
        }
Beispiel #4
0
        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();
        }