Esempio n. 1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     client.startService();
     if (client.isStarted())
     {
         this.ConnectButton.IsEnabled = false;
         this.statusBar.Text          = "Connected";
         Button_1.IsEnabled           = true;
         this.statusBar.Foreground    = Brushes.Green;
     }
 }
Esempio n. 2
0
 private void startService()
 {
     client.startService();
     cpcc = new CPCC(log, client.CloudIP, client.CloudPort, client.name, client.nodeName, client.networkController);
     cpcc.OnNewConnectionEstablished += new CPCC.NewConnection(newConnection);
 }