//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Event handler. Called by MainWindow for closing events. </summary> /// /// <remarks> Jordi Hutjens, 26-10-2018. </remarks> /// /// <param name="sender"> Learning Hub (object) raising the event. </param> /// <param name="e"> Cancel event information. </param> //////////////////////////////////////////////////////////////////////////////////////////////////// private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { udpmanager.UDPServerStop(); CloseApp(); Environment.Exit(Environment.ExitCode); }