Example #1
0
 private void OutputBtn_Click(object sender, EventArgs e)//输出
 {
     textBox6.Text = L.DispList();
     label6.Text   = "输出结果";
     textBox8.Text = L.ListLength().ToString();
     label5.Text   = "长度";
 }
Example #2
0
        private void MergeBtn_Click(object sender, EventArgs e)//归并
        {
            if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "")
            {
                Merge3(ref D);
                textBox4.Text = D.DispList();
            }

            else
            {
                MessageBox.Show("必须输入完整数据", "大写的警告");
            }


            if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text == "")
            {
                Merge2(ref D);
                textBox4.Text = D.DispList();
            }

            //else
            //{
            //MessageBox.Show("必须输入完整数据","大写的警告");
            // }
        }
Example #3
0
 private void OutpBtn_Click(object sender, EventArgs e)//输出
 {
     textBox1.Text = L1.DispList();
     textBox2.Text = L2.DispList();
     textBox3.Text = L3.DispList();
     MessageBox.Show("输出成功");
 }
Example #4
0
 private void OddEvenBtn_Click(object sender, EventArgs e)//输出奇偶顺序表
 {
     Split(ref K, ref J);
     textBox8.Text = K.DispList();
     label5.Text   = "奇数表";
     textBox6.Text = J.DispList();
     label6.Text   = "偶数表";
 }