Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            listCustomer cus = new listCustomer();

            cus.ShowDialog();
            try
            {
                this.cusNo.Text   = cus.dataGridView1.CurrentRow.Cells[0].Value.ToString();
                this.cusname.Text = cus.dataGridView1.CurrentRow.Cells[1].Value.ToString();
                this.phone.Text   = cus.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            }
            catch (Exception)
            {
                return;
            }
        }