public void AddLease(Lease lease) { Leases.Add(lease); }
public void RenewLease(int years, int months, byte[] imageData) { CurrentLease = new Lease(CurrentLease.PropertyLeased, CurrentLease.Tenants, CurrentLease.Rent, CurrentLease.Deposit, CurrentLease.PetDeposit, CurrentLease.EndDate, (years * 12) + months, ImageData); Lease.Leases.Add(CurrentLease); //add occurence }
public Payment(string name, string desc, DateTime date, Property prop, Occurence.Statuses status, double paymentExpected, double paymentReceived, Lease relevantLease) : base(name, desc, date, prop, status, prop.IsRented ? relevantLease.Tenants : new List <Tenant>()) { InstanceID = "Pay_" + new string(InstanceID.Skip(4).ToArray()); AmountExpected = paymentExpected; Amount = paymentReceived; RelevantLease = relevantLease; }
public void RenewLease(int years, int months,byte[] imageData) { CurrentLease = new Lease(CurrentLease.PropertyLeased, CurrentLease.Tenants, CurrentLease.Rent, CurrentLease.Deposit, CurrentLease.PetDeposit, CurrentLease.EndDate, (years * 12) + months,ImageData); Lease.Leases.Add(CurrentLease); //add occurence }
public void MoveInNewTenants(List<Tenant> tenants, DateTime startDate, int termLengthInMonths, double rent, double deposit, double petDeposit,byte[] imageData) { CurrentLease = new Lease(this, tenants, rent, deposit, petDeposit, startDate, termLengthInMonths,imageData); Lease.Leases.Add(CurrentLease); string[] tenantslist = new string[tenants.Count()]; int i = 0; foreach (Tenant t in tenants) { t.CurrentLease = CurrentLease; tenantslist[i++] = t.FirstName + " " + t.LastName; } Occurence.AddNewOccurence("New tenant move in", String.Join(", ", tenantslist), startDate, this, Occurence.Statuses.Resolved, tenants); Rent = rent; }
public void AddLease(Lease lease) { Leases.Add(lease); }