예제 #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmPaciente fPaciente = new frmPaciente();

            //fPaciente.RecibirDatos(0, "", "", "", "", 1);
            if (fPaciente.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //CargarDatos();
            }
        }
예제 #2
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            if (sidtpaciente == "" && dgvPaciente.SelectedRows.Count > 0)
            {
                MessageBox.Show("Debe seleccionar nuevamente los datos", "Mensaje de error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            frmPaciente fPaciente = new frmPaciente();

            //fPaciente.RecibirDatos(sidtmaestrodescuentos, scodigo, sdescripcion, scalculo, sabreviacion, 2);
            if (fPaciente.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                CargarDatos();
            }
        }