static SystemConfig() { config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); if (config.Sections["Machine"] == null) { config.Sections.Add("Machine", new MachineSection()); machineSection.SectionInformation.ForceSave = true; config.Save(); } machineSection = config.GetSection("Machine") as MachineSection; }
static SystemConfig() { config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); if (config.Sections["Machine"] == null) { config.Sections.Add("Machine", new MachineSection()); machineSection.SectionInformation.ForceSave = true; config.Save(); } machineSection = config.GetSection("Machine") as MachineSection; }