private void gridClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.operacion == OperacionForm.frmModificacion) { ClienteAMFrm frm = new ClienteAMFrm(); frm.ShowCliente((this.gridClientes.Rows[e.RowIndex].DataBoundItem as Cliente), this); } }
private void gridClientes_CellContentClick(object sender, DataGridViewCellEventArgs e) { var grid = (DataGridView)sender; if (grid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0) { ClienteAMFrm frm = new ClienteAMFrm(); frm.ShowCliente(grid.Rows[e.RowIndex].DataBoundItem as Cliente, this); } }
private void altaToolStripMenuItem_Click(object sender, EventArgs e) { ClienteAMFrm frmCliAlta = new ClienteAMFrm(); frmCliAlta.NewCliente(null); }
private void NuevoClienteBtn_Click(object sender, EventArgs e) { ClienteAMFrm frm = new ClienteAMFrm(); frm.NewCliente(this); }
private void altaToolStripMenuItem_Click(object sender, EventArgs e) { ClienteAMFrm frm = new ClienteAMFrm(); frm.Show(); }