Ejemplo n.º 1
0
 public void AddLease(Lease lease)
 {
     Leases.Add(lease);
 }
Ejemplo n.º 2
0
 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
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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
 }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
 public void AddLease(Lease lease)
 {
     Leases.Add(lease);
 }