Example #1
0
 private void DgvClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataGridViewRow row      = this.DgvClientes.SelectedRows[0];
         Clientes        clientes = new Clientes();
         clientes.IdCliente       = Int32.Parse(row.Cells[0].Value.ToString());
         clientes.NombreComercial = row.Cells[1].Value.ToString();
         clientes.Cédula          = row.Cells[2].Value.ToString();
         clientes.Estado          = row.Cells[3].Value.ToString();
         FrmEdClientes fed = new FrmEdClientes();
         fed.clientes = clientes;
         fed.ShowDialog();
     }
     catch (Exception ex)
     {
         return;
     }
 }
Example #2
0
        private void BtnAgregar_Click_1(object sender, EventArgs e)
        {
            FrmEdClientes frm = new FrmEdClientes();

            frm.ShowDialog();
        }