/* * Everything that should happen when the program is closing. */ public static void EndProgram() { DMXController.StopDMX(); //TODO: this isn't quite right; make sure that if someone disables //support while the program is running that we disconnect from //the iTunes jukebox server then //if (_lightingCommunication != null && Properties.Settings.Default.EnableItunesJukeboxSupport) //{ // _lightingCommunication.DisconnectFromServer(); //} _lightingSystemConfiguration.Serialize(Utilities.PROGRAM_FILES_PATH); DeregisterAllDisplayers(); _appClosing = true; Application.Current.Shutdown(); }