Exemplo n.º 1
0
 public PuzzlePresenter(IPuzzleModel model, IPuzzleView view)
 {
     m_model = model;
     m_view  = view;
     m_model.SubscribeUpdateImages(new EventDelegate(PutImagesIntoView));
     m_view.SubscribeMoveRequest(new PointDelegate(MoveRequest));
     m_view.SubscribeLoadImageRequest(new EventDelegate(RequestLoadImage));
 }
Exemplo n.º 2
0
        public PuzzlePresenter(IPuzzleModel model, IPuzzleView view)
        {
            m_model = model;

            m_view = view;

            m_model.SubscribeUpdateImages(PutImagesIntoView);

            m_view.SubscribeMoveRequest(MoveRequest);

            m_view.SubscribeLoadImageRequest(RequestLoadImage);
        }