private void button1_Click(object sender, EventArgs e) { ActionView actionView = new ActionView(); ActionCodeService actionService = new ActionCodeService(); IList actionList = actionService.getAllActionCodes(); //actionList.Add(new ActionCode("1","a")); //actionList.Add(new ActionCode("2", "b")); ActionCodeController controller = new ActionCodeController(actionView, actionList); controller.LoadView(); actionView.ShowDialog();; }
public void SetController(ActionCodeController controller) { this._controller = controller; }