private void Save()
        {
            ConfigNode config = new ConfigNode();

            settings.Save(config);
            mainWindow.Save(config);
            settingsWindow.Save(config);
            helpWindow.Save(config);

            config.Save(configFilename);
        }
Exemplo n.º 2
0
        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);
            }
        }