Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MainWindow.cs « NFreeRDP - github.com/FreeRDP/FreeRDP-Sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4964a896b2235715bbd2bcd89a8abfc3af6ccb7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FreeRDP;

namespace NFreeRDP
{
	public partial class MainWindow : Form
	{
		int port;
		string hostname;
		string username;
		string domain;
		string password;

		RdpClient rdpClient;

		public MainWindow()
		{
			InitializeComponent();
		}

		private void newConnectionToolStripMenuItem_Click(object sender, EventArgs e)
		{
			rdpClient = new RdpClient();

			port = 3389;
			hostname = "localhost";
			username = "Administrator";
			domain = "";
			password = "Password123!";

			rdpClient.Connect(hostname, port, username, domain, password);
		}
	}
}