public FlatCardSquare(Flat flat, Income view)
        {
            InitializeComponent();
            this.flat = flat;
            if (flat.getDues() <= 0)
            {
                changeToPaid();
            }

            else
            {
                changeToUnpaid();
            }

            this.view = view;
        }
Example #2
0
        public Receipt(User user, Flat flat, Building apartment, string month, int year, MainScreen mainScreen, Income incomeView) // used for collection
        {
            InitializeComponent();

            setValues(flat, month, year);
            controller = new TransactionModule(Util.CONNECTION_DETAILS.CONNECITION_STRING, Util.Tables.TABLE_INCOMING_TRANSACTIONS.TABLE_NAME);

            transaction     = new IncomingTransaction(receiptTrID.Text, apartment, flat, (int)receiptAmount.Value, reciptDateTime.Value, user.getFlat(), month, year);
            this.mainScreen = mainScreen;
            this.apartment  = apartment;
            this.incomeView = incomeView;
        }
Example #3
0
 public BackButton(Model.Building apartment, Income view)
 {
     InitializeComponent();
     this.apartment = apartment;
     this.view      = view;
 }