예제 #1
0
 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;
 }
예제 #2
0
 private void checkBox2_CheckedChanged(object sender, EventArgs e)
 {
     JsonConfig.AddConfigAndSave("autoStart", ckbAutostart.Checked.ToString());
     if (ckbAutostart.Checked)
     {
         AutoStart.SetAutorunSetup();
     }
     else
     {
         AutoStart.DeleteAutoSetup();
     }
 }
예제 #3
0
 private void checkBox4_CheckedChanged(object sender, EventArgs e)
 {
     JsonConfig.AddConfigAndSave("needlog", chkLog.Checked.ToString());
     YBYinHaiBLL.NeedLog = chkAutoInit.Checked;
 }
예제 #4
0
 private void checkBox3_CheckedChanged(object sender, EventArgs e)
 {
     JsonConfig.AddConfigAndSave("autoInit", chkAutoInit.Checked.ToString());
 }