Exemple #1
0
        public AddTransactionWindow(IController controller)
        {
            this.controller = controller;

            controller.AddView(this);

            moneyOut = true;

            InitializeComponent();
        }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();
            controller = new Controller <T>();
            model      = new Model <T>();
            panelView1.SetModel(model);
            controller.SetModel(model);
            controller.AddView(panelView1);
            int w = 70, h = 70;

            controller.SetMatrix(panelView1.Width / w, panelView1.Height / h);
        }
Exemple #3
0
        public Home(FileStoreManager fileStore, IController controller)
        {
            _fileStore  = fileStore;
            _controller = controller;
            InitializeComponent();

            _highlightedMonth = DateTime.Today;
            _plotter          = new GraphHandler(monthPlot, controller);

            viewer.Controller = controller;

            _toolTipHandler = new ToolTipHandler();

            controller.AddView(this);
        }
        public MonthlyAllowanceChanger(IController controller, DateTime date)
        {
            this.controller = controller;

            controller.AddView(this);

            InitializeComponent();

            toolTipHandler = new ToolTipHandler();

            month.Value = date;

            month.MaxDate = DateTime.Today;

            updateBudget(date);
        }