示例#1
0
        void LoadZunzun()
        {
            ZunzunView = Create.TestObjectFor<ZunzunView>();
            ZunzunPresenter = PresenterFactory.NewZunzunPresenter(ZunzunView);

            ZunzunPresenter.Load();
        }
示例#2
0
        public static ZunzunPresenter NewZunzunPresenter(ZunzunView View)
        {
            var Presenter = new ZunzunPresenter {
                View = View,
                UserService = Domain.ObjectFactory.NewUserService,
                UserAuthenticator = ObjectFactory.NewUserAuthenticator,
                UserSettings = Domain.ObjectFactory.NewUserSettings
            };

            Presenter.RegisterEvents();

            return Presenter;
        }
示例#3
0
 public Main()
 {
     Presenter = PresenterFactory.NewZunzunPresenter(this);
     InitializeComponent();
     RegisterEvents();
 }