private void checkBox2_CheckedChanged(object sender, EventArgs e) { JsonConfig.AddConfigAndSave("autoStart", ckbAutostart.Checked.ToString()); if (ckbAutostart.Checked) { AutoStart.SetAutorunSetup(); } else { AutoStart.DeleteAutoSetup(); } }