Example #1
0
        private void checkBox_isautobackup_CheckedChanged(object sender, EventArgs e)
        {
            JObject jobject = JsonHelper.readJson();

            if (isautobackup != checkBox_isautobackup.Checked.ToString().ToLower())
            {
                isautobackup = checkBox_isautobackup.Checked.ToString().ToLower();
                if (JsonHelper.SetShortcutKeyJsonValue(jobject, "isautobackup", isautobackup))
                {
                    MessageBox.Show("修改成功!");
                }
            }
        }
Example #2
0
 private void button_apply_Click(object sender, EventArgs e)
 {
     if (txt_shortcutkey.Text != lbl_shortcutkey.Text)
     {
         JObject jobject = JsonHelper.readJson();
         if (JsonHelper.SetShortcutKeyJsonValue(jobject, "shortcutkey", txt_shortcutkey.Text))
         {
             MessageBox.Show("修改成功!");
         }
     }
     else if (isdoubleclick != lbl_isdoubleclick.Text)
     {
         JObject jobject = JsonHelper.readJson();
         if (JsonHelper.SetShortcutKeyJsonValue(jobject, "isdoubleclick", isdoubleclick))
         {
             MessageBox.Show("修改成功!");
         }
     }
     this.Close();
 }