Beispiel #1
0
 public repayment()
 {
     InitializeComponent();
     lst.ShowDialog();
     txtNo.Text   = lst.dataGridView1.CurrentRow.Cells[0].Value.ToString();
     txtName.Text = lst.dataGridView1.CurrentRow.Cells[1].Value.ToString();
 }
Beispiel #2
0
        public newDept()
        {
            InitializeComponent();
            cus.ShowDialog();


            this.txtNo.Text   = cus.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            this.txtName.Text = cus.dataGridView1.CurrentRow.Cells[1].Value.ToString();
        }
Beispiel #3
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;
            }
        }