Exemple #1
0
 private void llamar()
 {
     if (Form1.Cod_U == "1" || Form1.Cod_U == "2")
     {
         MessageBox.Show("Elementos activados", "Administrador", MessageBoxButtons.OK, MessageBoxIcon.Information);
         BtnEliminar.Enabled = true;
         DtpFechaOpe.Enabled = true;
     }
     else
     {
         Autopass pru = new Autopass();
         pru.verificar += new Autopass.permiso(activar);
         pru.ShowDialog();
     }
 }
Exemple #2
0
 private void tabControl1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F12)
     {
         if (Form1.Cod_U == "1" || Form1.Cod_U == "2")
         {
             MessageBox.Show("Elementos activados", "Administrador", MessageBoxButtons.OK, MessageBoxIcon.Information);
             BtnEliminar.Enabled = true;
             //TxtInteres.Enabled = true;
             //TxtCapital.Enabled = true;
             TxtIntD.Enabled = true;
             //TxtCapD.Enabled = true;
             DtpPago.Enabled = true;
         }
         else
         {
             Autopass pru = new Autopass();
             pru.verificar += new Autopass.permiso(activar);
             pru.ShowDialog();
         }
     }
 }