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(); }
public EditFormController(EditFormModel model, EditFormView view) { _model = model; _view = view; _view.UpdateButtonListener(UpdateButtonClick); _view.CancelButtonListener(CancelButtonClick); }