Example #1
0
        public string CreateNewTransaction(string user, UserProxy.CreditInfo creditInfo)
        {
            string key = user + creditInfo.Amount + DataBase.Users[user].GetTransactionHistory().Count;

            _creditTransactions.Add(new CreditTransaction(user, creditInfo, key));
            return(key);
        }
Example #2
0
 private void DisplayCreditInfo()
 {
     aInfoLabel.Text = "";
     UserProxy.CreditInfo info = CurrentUser.GetCreditInfo();
     aInfoLabel.Text += "Current credit: ";
     if (info.Amount == 0)
     {
         aInfoLabel.Text += "none \n";
     }
     else
     {
         aInfoLabel.Text += "\n Amount: " + info.Amount + "\n Percent: " + info.Percent + "\n Time: " + info.Time + "\n";
     }
     aInfoLabel.Text += "Credit limit: " + CurrentUser.CreditLimit();
 }