示例#1
0
 public static void DetailTheExchange(int keyPush, int preceedingKeyPush)
 {
     if (debtToCustomer > ProductStock.ShowProductInfo(keyPush).ProductPrice)
     {
         if (keyPush == preceedingKeyPush && Display.RevealCurrentMessage().Contains("to confirm"))
         {
             ProductStock.SendProduct(keyPush);
             debtToCustomer -= ProductStock.ShowProductInfo(keyPush).ProductPrice;
         }
         else
         {
             ActivityControl.ConcatenateCurrentMessage($"Push {keyPush} to confirm buy");
         }
     }
     else
     {
         ActivityControl.ConcatenateCurrentMessage($"You miss by {debtToCustomer - ProductStock.ShowProductInfo(keyPush - 1).ProductPrice}kr");
     }
 }