Esempio n. 1
0
        private static void AddButtonClick(object o, EventArgs e)
        {
            var view = new AddFormView();
            var model = new AddFormModel();
            var controller = new AddFormController(model, view);

            view.ShowDialog();
        }
Esempio n. 2
0
        public AddFormController(AddFormModel model, AddFormView view)
        {
            _model = model;
            _view  = view;

            _view.OkButtonListener(OkButtonClick);
            _view.CancelButtonListener(CancelButtonClick);
        }
Esempio n. 3
0
        public AddFormController(AddFormModel model,AddFormView view)
        {
            _model = model;
            _view = view;

            _view.OkButtonListener(OkButtonClick);
            _view.CancelButtonListener(CancelButtonClick);
        }