private void Save() { ConfigNode config = new ConfigNode(); settings.Save(config); mainWindow.Save(config); settingsWindow.Save(config); helpWindow.Save(config); config.Save(configFilename); }
public void Save() { try { ConfigNode config = new ConfigNode(); settings.Save(config); mainWindow.Save(config); settingsWindow.Save(config); helpWindow.Save(config); config.Save(filename); this.Log("saved to file: " + config); } catch (Exception ex) { this.LogWarning("failed to save config file: " + ex.Message + "\n" + ex.StackTrace); } }