Beispiel #1
0
 public bool BlockBadCommand(int counter)
 {
     if (counter < countBadCommand)
     {
         DataInputOutputManager.OutputMessager("Limit of bad attempts ", countBadCommand - counter);
         return(false);
     }
     else
     {
         DataInputOutputManager.OutputMessenger("Bad command. YOURS CARD WAS BLOCK!");
         return(true);
     }
 }
Beispiel #2
0
 public bool BlockCardPinCode(int counter)
 {
     if (counter < countBadPinCode)
     {
         ++counterBadCommand;
         DataInputOutputManager.OutputMessager("Wrong pin code, you have attempts: ", countBadPinCode - counter);
         return(false);
     }
     else
     {
         DataInputOutputManager.OutputMessenger("Wrong pin code. YOUR CARD WAS BLOCKED!");
         return(true);
     }
 }
Beispiel #3
0
 //Counters
 public bool BlockBadSum(int counter)
 {
     ++counterBadCommand;
     if (counter < counBadSum && !BlockBadCommand(counterBadCommand))
     {
         DataInputOutputManager.OutputMessager("Wrong sum, you have attempts: ", counBadSum - counter);
         return(false);
     }
     else
     {
         DataInputOutputManager.OutputMessenger("So much bad sum. YOUR CARD WAS BLOCKED!");
         return(true);
     }
 }
Beispiel #4
0
 public void Exit(Card card)
 {
     DataInputOutputManager.OutputMessager("BYE ", card.IDUser);
 }