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

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

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

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