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); } }
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); } }