Ejemplo n.º 1
0
        private void btnCreateCustomer_Click(object sender, EventArgs e)
        {
            CustomerEditForm customerEditForm = new CustomerEditForm();

            customerEditForm.MdiParent = this;
            customerEditForm.Show();
            ClosePanelVisible();
        }
Ejemplo n.º 2
0
        private void miUpdate_Click(object sender, EventArgs e)
        {
            if (dgvCustomerList.SelectedRows.Count > 0)
            {
                object cellValue  = dgvCustomerList.SelectedRows[0].Cells["ID"].Value;
                int    customerID = (int)cellValue;

                CustomerEditForm editForm = new CustomerEditForm(customerID);
                editForm.MdiParent = this.MdiParent;
                editForm.Show();
            }
        }