Exemple #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmCargarCliente CargarClienteForm = new frmCargarCliente();

            CargarClienteForm.Show();
            this.Close();
        }
Exemple #2
0
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCargarCliente CargarClienteForm = new frmCargarCliente();

            CargarClienteForm.MdiParent = this;
            CargarClienteForm.Show();
        }
Exemple #3
0
        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;
            }
        }