/* The window is closing */ private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { /* Take care of external changes in the update window */ UpdateWindow.ExternalSaveConfiguration(appName, ref iniData, ref newIniData); /* Write our settings to our .ini file */ iniParser.WriteFile(iniFile, newIniData); }