private void button6_Click(object sender, EventArgs e) { if (!System.IO.Directory.Exists(txtPath.Text)) { MessageBox.Show("当前目录不存在,请创建"); return; } JsonConfig.AddConfigAndSave("yibaoPath", txtPath.Text); YBYinHaiBLL.YiBaoPath = txtPath.Text; }
private void checkBox2_CheckedChanged(object sender, EventArgs e) { JsonConfig.AddConfigAndSave("autoStart", ckbAutostart.Checked.ToString()); if (ckbAutostart.Checked) { AutoStart.SetAutorunSetup(); } else { AutoStart.DeleteAutoSetup(); } }
private void checkBox4_CheckedChanged(object sender, EventArgs e) { JsonConfig.AddConfigAndSave("needlog", chkLog.Checked.ToString()); YBYinHaiBLL.NeedLog = chkAutoInit.Checked; }
private void checkBox3_CheckedChanged(object sender, EventArgs e) { JsonConfig.AddConfigAndSave("autoInit", chkAutoInit.Checked.ToString()); }