private void button2_Click(object sender, EventArgs e) { Blog2View blog2View = new Blog2View(); BlogService blogService = new BlogService(); IList blogList = new ArrayList();// blogService.getAllBlogs(); Blog2Controller blog2Controller = new Blog2Controller(blog2View, blogList); blog2Controller.LoadView(); blog2View.ShowDialog(); }
public void SetController(Blog2Controller controller) { _controller = controller; }