Outlook

来源:互联网 发布:c语言计算马德隆常数 编辑:程序博客网 时间:2024/05/01 13:38

  //Form1中
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 f = new Form2();
            f.Owner = this;
            f.Show();
        }

        public void getDataFromAddress(ArrayList al)
        {
            for (int i = 0; i < al.Count; i++)
            {
                string[] data = al[i].ToString().Split(';');
                dataGridView2.Rows.Add();
                dataGridView2.Rows[i].Cells[0].Value = true;
                dataGridView2.Rows[i].Cells[1].Value = data[0];
                dataGridView2.Rows[i].Cells[2].Value = data[1];
            }
        }

原创粉丝点击