コード例 #1
0
 public void showTransactions()
 {
     Console.WriteLine(" Transaction type: {0}  ", Additional);
     Console.WriteLine(" Amount: " + Amu);
     if (Additional.ToLower().Equals("transfer"))
     {
         Console.WriteLine(" To: {0}({1})", receiver.AccName, receiver.AccNo);
     }
 }
コード例 #2
0
 public void showAllTransactions()
 {
     Console.WriteLine("Transaction type: " + Additional);
     if (Additional.ToLower().Equals("transfer"))
     {
         Console.WriteLine("Sender: " + sender);
         Console.WriteLine("Receiver: " + receiver);
     }
     Console.WriteLine("Amount: " + Amount);
 }