private void ConnectNAOClick(object sender, RoutedEventArgs e) { nao = new ToNao(IPBox.Text, int.Parse(PortBox.Text), kinect, 20); nao.setUpNao(); nao.AnglesSent += startStreamAngles; }