private void button1_Click(object sender, EventArgs e) { string str = textBox1.Text.Trim(); if (str == "") { label2.Text = "请输入元素啊!"; return; } else { string[] split = str.Split(new char[] { ',', ' ', '.', ':', }); L.CreatList(split); } button2.Enabled = true; }
private void button1_Click(object sender, EventArgs e) { string str1 = textBox1.Text.Trim(); if (str1 == "") { return; } else { string[] split = str1.Split(new char[] { ' ', ' ', '.', ':', }); L1.CreatList(split); } string str2 = textBox2.Text.Trim(); if (str2 == "") { return; } else { string[] split = str2.Split(new char[] { ' ', ' ', '.', ':', }); L2.CreatList(split); } string str3 = textBox3.Text.Trim(); if (str3 == "") { return; } else { string[] split = str3.Split(new char[] { ' ', ' ', '.', ':', }); L3.CreatList(split); } button2.Enabled = true; }