Exemplo n.º 1
0
 public OutgoingTransaction(string trID, ExpenseDetails expense, DateTime date, Flat paidBy)
 {
     this.trID     = trID;
     this.expense  = expense;
     this.datePaid = date;
     this.paidBy   = paidBy;
 }
Exemplo n.º 2
0
 public void setFlat(Flat flat)
 {
     this.userFlat = flat;
     if (this.isAdmin)
     {
         userFlat.makeManager(3);
     }
     userFlat.setContactNumber(this.mobileNumber);
     userFlat.setEmail(this.email);
     userFlat.setNameOfResident(this.firstName + " " + this.lastName);
 }
 public IncomingTransaction(String trID, Building apartment, Flat paidBy, int amount, DateTime date, Flat collectedBy, string forTheMonth, int year)
 {
     this.trID        = trID;
     this.apartment   = apartment;
     this.paidBy      = paidBy;
     this.amount      = amount;
     this.date        = date;
     this.collectedBy = collectedBy;
     this.forTheMonth = forTheMonth;
     this.year        = year;
 }
Exemplo n.º 4
0
        public FlatCardSquare(Flat flat, Income view)
        {
            InitializeComponent();
            this.flat = flat;
            if (flat.getDues() <= 0)
            {
                changeToPaid();
            }

            else
            {
                changeToUnpaid();
            }

            this.view = view;
        }
Exemplo n.º 5
0
        public Flat getAdminFlat()
        {
            Flat f = null;

            for (int i = 0; i < noOfFloors; i++)
            {
                for (int j = 0; j < flatsPerFloor; j++)
                {
                    if (flats[i, j].getIsManager() == 3)
                    {
                        f = flats[i, j];
                    }
                }
            }

            return(f);
        }
Exemplo n.º 6
0
        public void updateFlatAt(Flat newFlat)
        {
            int flatNumber = newFlat.getFlatNumber();

            flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat;
        }
Exemplo n.º 7
0
 public void setFlatAt(int flatNumber, Flat newFlat)
 {
     flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat;
 }
Exemplo n.º 8
0
 public void setFlatAt(int floor, int flat, Flat newFlat)
 {
     flats[floor, flat] = newFlat;
 }