Exemplo n.º 1
0
 public void AddLoanToFile(Loan l)
 {
     List<Loan> list;
     if (loanList.Count != 0 || loanList != null)
     {
         list = loanList;
     }
     else
     {
         list = new List<Loan>();
         //addSomeData();
     }
     list.Add(l);
     loanList = list;
     SaveList(loanList, "loans.xml");
 }
Exemplo n.º 2
0
 public void MakeLoan(string name, int amount)
 {
     Loan l = new Loan(name, amount);
     dbl.AddLoanToFile(l);
 }