Example #1
0
 public NTRHelper()
 {
     InitializeComponent();
     IP.Text            = Properties.Settings.Default.IP;
     ntrclient          = new NtrClient();
     ntrclient.Connect += OnConnected;
     ntrclient.Message += OnMsgArrival;
     ntrclient.setServer(IP.Text, 8000);
 }
Example #2
0
 private void B_Connect_Click(object sender, EventArgs e)
 {
     ntrclient.OneClick = sender == B_OneClick;
     L_NTRLog.Text      = "Connecting...";
     ntrclient.setServer(IP.Text, 8000);
     try
     {
         ntrclient.connectToServer();
     }
     catch
     {
         OnDisconnected(false);
         Error("Unable to connect the console");
     }
 }