public CPNameEditor(string labelIndex, string CPname, couponTest f) { InitializeComponent(); f1 = f; ind = labelIndex; lbinx = "\"" + labelIndex + "\":\""; label5.Text = "编号:" + labelIndex; label4.Text = "原试片:" + CPname; oldstr = lbinx + CPname + "\""; if (CPname == "NONE") { comboBox1.Text = ""; comboBox2.Text = ""; comboBox3.Text = ""; } else { var tmpary = CPname.Split('/'); comboBox1.Text = tmpary[0].Split('-')[1]; var otherary = tmpary[1].Split('-'); comboBox2.Text = otherary[0]; comboBox3.Text = otherary[1]; } }
private void couponTestToolStripMenuItem_Click(object sender, EventArgs e) { couponTest f = new couponTest(); f.Show(); }