//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Method to set GUI look based on IsRecording variable. </summary> /// /// <remarks> Jordi Hutjens, 26-10-2018. </remarks> //////////////////////////////////////////////////////////////////////////////////////////////////// public void StartRecordingData() { if (Globals.IsRecordingUdp) { Globals.IsRecordingUdp = false; ButtonText = "Start Recording"; ButtonColor = new SolidColorBrush(Colors.White); udpmanager.UDPServerStop(); } else { Globals.IsRecordingUdp = true; ButtonText = "Stop Recording"; ButtonColor = new SolidColorBrush(Colors.Green); udpmanager.UDPServerStart(); } }