private void btnNuevo_Click(object sender, EventArgs e) { frmCargarCliente CargarClienteForm = new frmCargarCliente(); CargarClienteForm.Show(); this.Close(); }
private void clienteToolStripMenuItem_Click(object sender, EventArgs e) { frmCargarCliente CargarClienteForm = new frmCargarCliente(); CargarClienteForm.MdiParent = this; CargarClienteForm.Show(); }
public void btnModificar_Click(object sender, EventArgs e) { if (dtgPac.SelectedRows.Count == 1) { Int64 Id = Convert.ToInt64(dtgPac.CurrentRow.Cells[0].Value); ClienteSeleccionado = ClienteDAL.ObtenerCliente2(Id); frmCargarCliente CargarClienteForm = new frmCargarCliente(); CargarClienteForm.Show(); this.Close(); } else { MessageBox.Show("Seleccione Paciente que desea Modificar", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } if (ClienteSeleccionado != null) { ClienteActual = ClienteSeleccionado; } }