Пример #1
0
        public MainScreen(User user, Building apartment)
        {
            InitializeComponent();
            this.main.AutoScroll = false;
            this.main.AutoScroll = true;
            this.user            = user;
            this.apartment       = apartment;
            months = new List <string>();
            years  = new List <String>();
            updateMainScreen();
            controller = new MainScreenController(Util.CONNECTION_DETAILS.CONNECITION_STRING, "");
            controller.updateBalance(apartment, this);
            // calling controller function and creating user

            controller = new TransactionModule(Util.CONNECTION_DETAILS.CONNECITION_STRING, "");
            controller.setYears(this, this.apartment);
        }