Exemplo n.º 1
0
        private void newConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            rdpClient = new RdpClient();

            port = 3389;
            hostname = "localhost";
            username = "******";
            domain = "";
            password = "******";

            rdpClient.Connect(hostname, port, username, domain, password);
        }
Exemplo n.º 2
0
        private void newConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConnectionDialog dialog = new ConnectionDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                rdpClient = new RdpClient();
                rdpClient.Connect(dialog.GetConnectionSettings());
            }

            dialog.Dispose();
        }
Exemplo n.º 3
0
		private void newConnectionToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ConnectionDialog dialog = new ConnectionDialog();

			if (dialog.ShowDialog() == DialogResult.OK)
			{
				rdpClient = new RdpClient();
				rdpClient.Connect(dialog.GetConnectionSettings());
			}

			dialog.Dispose();
		}