void Frm_disclaimFormClosing(object sender, FormClosingEventArgs e) { if (!agree) { Environment.Exit(0); } else { SettingConfUtils.SetConfig("ShowLicenseStartup", checkBox1.Checked); } }
void Button1Click(object sender, EventArgs e) { agree = true; SettingConfUtils.SetConfig("ShowLicenseStartup", checkBox1.Checked); Close(); }