Ejemplo n.º 1
0
        private void btn_update_Click(object sender, EventArgs e)
        {
            Add frm = new Add(true);

            frm.MdiParent        = this.MdiParent;
            frm.S_ID             = int.Parse(dgv.CurrentRow.Cells[0].Value.ToString());
            frm.txt_name.Text    = dgv.CurrentRow.Cells[1].Value.ToString();
            frm.txt_address.Text = dgv.CurrentRow.Cells[2].Value.ToString();
            frm.txt_phone.Text   = dgv.CurrentRow.Cells[3].Value.ToString();
            frm.Show();
        }
Ejemplo n.º 2
0
 private void btn_add_supplier_Click(object sender, EventArgs e)
 {
     Suppliers.Add frm = new Suppliers.Add();
     frm.MdiParent = this;
     frm.Show();
 }