public OutgoingTransaction(string trID, ExpenseDetails expense, DateTime date, Flat paidBy) { this.trID = trID; this.expense = expense; this.datePaid = date; this.paidBy = paidBy; }
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; }
public FlatCardSquare(Flat flat, Income view) { InitializeComponent(); this.flat = flat; if (flat.getDues() <= 0) { changeToPaid(); } else { changeToUnpaid(); } this.view = view; }
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); }
public void updateFlatAt(Flat newFlat) { int flatNumber = newFlat.getFlatNumber(); flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat; }
public void setFlatAt(int flatNumber, Flat newFlat) { flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat; }
public void setFlatAt(int floor, int flat, Flat newFlat) { flats[floor, flat] = newFlat; }