예제 #1
0
        private void CreBtn_Click(object sender, EventArgs e)//创建
        {
            string str = textBox1.Text.Trim();

            if (str == "")
            {
                return;
            }
            else
            {
                string[] split = str.Split(new char[] { ' ', ' ', '.', ':', });   //建立顺序表
                L.CreatList(split);
            }
        }
예제 #2
0
        private void CreBtn_Click(object sender, EventArgs e)//创建
        {
            string str1 = textBox1.Text.Trim();
            string str2 = textBox2.Text.Trim();
            string str3 = textBox3.Text.Trim();

            //if (str1 == "" || str2 == "" || str3 == "")
            //{
            //    MessageBox.Show("必须输入三组元素", "提示");
            //}
            //else
            //{
            string[] splist1 = str1.Split(' ', ',', '.', ':');
            string[] splist2 = str2.Split(' ', ',', '.', ':');
            string[] splist3 = str3.Split(' ', ',', '.', ':');
            L1.CreatList(splist1);
            L2.CreatList(splist2);
            L3.CreatList(splist3);

            OutpBtn.Enabled  = true;
            MergeBtn.Enabled = true;

            //}
        }