示例#1
0
        private void 设置启动参数ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            consoleform cf = new consoleform();

            if (cf.ShowDialog() == DialogResult.OK)
            {
                consoletxt = cf.ctxt;
                conbox.AppendText("\n[设置控制命令]" + consoletxt + "\n");
                string  temp = rconfig();
                JObject json = JObject.Parse(temp);

                json["console"] = consoletxt;
                temp            = json.ToString();
                wconfig(temp);
            }
        }
示例#2
0
        private void 设置启动参数ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            consoleform cf = new consoleform();
            if(cf.ShowDialog()== DialogResult.OK){
                consoletxt=cf.ctxt;
                conbox.AppendText("\n[设置控制命令]" + consoletxt + "\n");
              string temp=  rconfig();
            JObject json = JObject.Parse(temp);

                json["console"] = consoletxt;
                temp =json.ToString();
                wconfig(temp);
            }
        }