private void button1_Click_1(object sender, EventArgs e) { Corder search = new Corder(); string result = search.orderTracesSubByJson(); JObject list = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(result); label8.Text = result; }
private void button1_Click(object sender, EventArgs e) { Corder search = new Corder(); search.setSender(textBox11.Text, textBox12.Text, textBox13.Text, textBox14.Text, textBox15.Text, textBox16.Text); search.setReceiver(textBox21.Text, textBox22.Text, textBox23.Text, textBox24.Text, textBox25.Text, textBox26.Text); search.setShipper(listBox1.Text); string str = search.orderTracesSubByJson(); JObject result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(str); var tam = result["PrintTemplate"]; FormOrderDisplay frm = new FormOrderDisplay(tam.ToString()); this.Close(); frm.Show(); }