Beispiel #1
0
        private void btnNuevoCliente_Click(object sender, EventArgs e)
        {
            ClienteAgregarForm agregarForm = new ClienteAgregarForm();

            agregarForm.FormClosed += AgregarForm_FormClosed;
            agregarForm.ShowDialog();
        }
Beispiel #2
0
 private void gridClientes_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 2) //Si es presiona editar
     {
         int idCliente = (int)gridClientes.Rows[e.RowIndex].Cells[0].Value;
         //MessageBox.Show(vendorName);
         ClienteAgregarForm agregarForm = new ClienteAgregarForm(idCliente);
         agregarForm.Text        = "Consultar/Editar Cliente";
         agregarForm.FormClosed += AgregarForm_FormClosed;
         agregarForm.ShowDialog();
     }
 }