private void etcOptionMenuItem_Click(object sender, EventArgs e) { FormEtcOption form = new FormEtcOption(); if (form.ShowDialog() == DialogResult.OK) { UlIniFile ini = Resource.Ini; string section = "Options"; ini.SetBoolean(section, "FixedAtmPressure", form.FixedAtmPressure); ini.SetBoolean(section, "ForcedInteg", form.ForcedInteg); ini.SetString(section, "ExcelPath", form.ExcelPath); Resource.Settings.Load(); } }
private void prtOptionMenuItem_Click(object sender, EventArgs e) { FormPrintingOption form = new FormPrintingOption(); if (form.ShowDialog() == DialogResult.OK) { UlIniFile ini = Resource.Ini; string section = "Options"; ini.SetBoolean(section, "AutoExcel", form.AutoExcel); ini.SetBoolean(section, "StoppedTestExcel", form.StoppedTestExcel); ini.SetBoolean(section, "Indoor11", form.Indoor11); ini.SetBoolean(section, "Indoor12", form.Indoor12); ini.SetBoolean(section, "Indoor21", form.Indoor21); ini.SetBoolean(section, "Indoor22", form.Indoor22); ini.SetBoolean(section, "Indoor1TC", form.IndoorTC1); ini.SetBoolean(section, "Indoor2TC", form.IndoorTC2); ini.SetBoolean(section, "OutdoorTC", form.OutdoorTC); Resource.Settings.Load(); } }