Ejemplo n.º 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            frmAddCustomer f = new frmAddCustomer(this);

            f.MdiParent     = this.MdiParent;
            f.StartPosition = FormStartPosition.CenterScreen;
            f.Show();
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            try
            {
                object id = dataGridView1.CurrentRow.Cells["CUSTOMER_id"].Value;

                DataRow selectedRow = dtCustomers.Rows.Find(id);

                frmAddCustomer f = new frmAddCustomer(selectedRow, this);
                f.MdiParent     = this.MdiParent;
                f.StartPosition = FormStartPosition.CenterScreen;
                f.Show();
            }
            catch (Exception ex) { }
            //Close();
        }