예제 #1
0
파일: Caja.cs 프로젝트: AmiVelas04/Creditos
 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();
     }
 }
예제 #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();
         }
     }
 }