private void BTN_ECompileSave_Click(object sender, EventArgs e) { if (ECompileCFG == null) { try { ECompileCFG = new EConfig(); ECompileCFG.LoadConfig(Settings.Global.Properties["ECompileCfgPath"]); } catch (Exception ex) { ExceptionBox.ExceptionForm tmp = new ExceptionBox.ExceptionForm(ref ex); tmp.ShowDialog(this); } } foreach (CheckBox ThisBox in PNL_ECompileFlags.Controls) { ECompileCFG.Option(ThisBox.Name.Substring(15), ThisBox.Checked); } foreach (TextBox ThisBox in PNL_ECompilePaths.Controls) { ECompileCFG.Option(ThisBox.Name.Substring(11), ThisBox.Text); } ECompileCFG.SaveConfig(); }