public EditFormController(EditFormModel model,EditFormView view)
        {
            _model = model;
            _view = view;

            _view.UpdateButtonListener(UpdateButtonClick);
            _view.CancelButtonListener(CancelButtonClick);
        }
        private static void EditButtonClick(object o, EventArgs e)
        {
            var view = new EditFormView();
            var model = new EditFormModel();
            var controller = new EditFormController(model, view);

            view.ShowDialog();
        }
示例#3
0
        public EditFormController(EditFormModel model, EditFormView view)
        {
            _model = model;
            _view  = view;

            _view.UpdateButtonListener(UpdateButtonClick);
            _view.CancelButtonListener(CancelButtonClick);
        }