예제 #1
0
 private void pbxModificarP_Click(object sender, EventArgs e)
 {
     if (dgvMedicos.CurrentRow == null)
     {
         MessageBox.Show("Debe seleccionar el elemento que quiere eliminar");
     }
     else
     {
         Empleado_Service Medicos = new Empleado_Service();
         Empleado         aux     = new Empleado();
         aux = (Empleado)dgvMedicos.CurrentRow.DataBoundItem;
         FrmMedico FICHAm = new FrmMedico(Medicos.BuscarEmpleado(aux));
         FICHAm.ShowDialog();
     }
 }
예제 #2
0
        private void agregarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMedico FichaMed = new FrmMedico();

            FichaMed.ShowDialog();
        }
예제 #3
0
        private void pbxAgregarP_Click(object sender, EventArgs e)
        {
            FrmMedico FICHAm = new FrmMedico();

            FICHAm.ShowDialog();
        }