private void ConnectDisconnectButtonClick(object sender, RoutedEventArgs e) { if (Orchestra.IsConnected) { Orchestra.Disconnect(); } else { Orchestra.Connect(); } }