private void btnSwitchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSwitchActionPerformed
        AdministradorCRUD adao = new AdministradorCRUD(MyConnection.getConnection());
        if(btnSwitch.getText().equals("Actualizar")){
            Administrador admin = new Administrador(
                edtUserName.getText().toString(),
                jtxtPass.getText().toString(),
                edtDNI.getText().toString()
            );
            if(adao.update(admin)){
                JOptionPane.showMessageDialog(
                    this,
                    "Registro Guardado Con exito!!!",
                    "Notificación",
                    JOptionPane.INFORMATION_MESSAGE
                );
            }
        }else{
            Administrador admin = new Administrador(
                edtUserName.getText().toString(),
                jtxtPass.getText().toString(),
                edtDNI.getText().toString()
            );
            if(adao.add(admin)){
                JOptionPane.showMessageDialog(
                    this,
                    "Registro Guardado Con exito!!!",
                    "Notificación",
                    JOptionPane.INFORMATION_MESSAGE
                );
                clearForm();
            }
        }
    }//GEN-LAST:event_btnSwitchActionPerformed