Beispiel #1
0
 public string GetAccountBalance()
 {
     if (this.Active == false)
     {
         return("N/A (Inactive Account)");
     }
     else
     {
         return(AccountBalance.ToString());
     }
 }
Beispiel #2
0
 // sets the Customer up to a array used to show data in the listview as a listviewitem
 public string[] GetListViewItemRange()
 {
     string[] arr = new string[11]
     {
         CustomerNumber.ToString(), FirstName, LastName, EmailAddress.Print(), AccountBalance.ToString(), CustAdresse.PostCode.ToString(), CustAdresse.City, CustAdresse.Street, CustAdresse.StreetNr.ToString(),
              LastAccess.ToShortDateString(), ""
     };
     return(arr);
 }
Beispiel #3
0
 public string PrintCustomerCrypt()
 {
     return(Crypto.EncodeLine(new string[] { CustomerNumber.ToString(), FirstName, LastName, EmailAddress.Print(), CustAdresse.ToCSVString(), LastAccess.ToShortDateString(), AccountBalance.ToString() }));
 }
Beispiel #4
0
 public override string ToString()
 {
     return(AccountType + "  " + AccountBalance.ToString() + "  " + UniqueAccountNumber.ToString());
 }