示例#1
0
 public PlaceController(IEventBus eventBus, IPresenterMapper presenterMapper,
                        IAcceptsOneControl viewFrame)
 {
     this.eventBus        = eventBus;
     this.presenterMapper = presenterMapper;
     this.viewFrame       = viewFrame;
 }
示例#2
0
        public Services(IAcceptsOneControl viewFrame)
        {
            EventBus = new SimpleEventBus();
            IPresenterMapper presenterMapper = new PresenterMapper(this);
            PlaceController = new PlaceController(EventBus, presenterMapper, viewFrame);

            TestView = new TestView();
        }
示例#3
0
        public override void Start(IAcceptsOneControl viewFrame, IEventBus eventBus)
        {
            viewFrame.Control = null;

            eventBus.FireEvent(this, new PageTitleEventArgs(Resources.MainWindowDefaultTitle));
            eventBus.FireEvent(this, new StatusEventArgs(Resources.StatusEmpty, false, 0.0));
            eventBus.FireEvent(this, new CommandEnableEventArgs(false, false));
            eventBus.FireEvent(this, new TestStateEventArgs(TestState.Nothing));
        }
示例#4
0
        public Services(IAcceptsOneControl viewFrame)
        {
            EventBus = new SimpleEventBus();
            IPresenterMapper presenterMapper = new PresenterMapper(this);

            PlaceController = new PlaceController(EventBus, presenterMapper, viewFrame);

            TestView = new TestView();
        }
示例#5
0
        public override void Start(IAcceptsOneControl viewFrame, IEventBus eventBus)
        {
            viewFrame.Control = null;

            eventBus.FireEvent(this, new PageTitleEventArgs(Resources.MainWindowDefaultTitle));
            eventBus.FireEvent(this, new StatusEventArgs(Resources.StatusEmpty, false, 0.0));
            eventBus.FireEvent(this, new CommandEnableEventArgs(false, false));
            eventBus.FireEvent(this, new TestStateEventArgs(TestState.Nothing));
        }
示例#6
0
        public override void Start(IAcceptsOneControl viewFrame, IEventBus eventBus)
        {
            services.TestView.Presenter = this;
            viewFrame.Control           = services.TestView.ProvidedControl;

            eventBus.FireEvent(this, new PageTitleEventArgs(String.Format(Resources.MainWindowFileTitle,
                                                                          Path.GetFileNameWithoutExtension(place.Filename))));

            eventBus.AddHandler <RunAllEventArgs>(onRunAll);
            eventBus.AddHandler <RunSelectedEventArgs>(onRunSelected);

            eventBus.FireEvent(this, new CommandEnableEventArgs(false, false));
            backgroundRunner.Run(place.Filename, true, null);
        }
示例#7
0
        public override void Start(IAcceptsOneControl viewFrame, IEventBus eventBus)
        {
            services.TestView.Presenter = this;
            viewFrame.Control = services.TestView.ProvidedControl;

            eventBus.FireEvent(this, new PageTitleEventArgs(String.Format(Resources.MainWindowFileTitle,
                Path.GetFileNameWithoutExtension(place.Filename))));

            eventBus.AddHandler<RunAllEventArgs>(onRunAll);
            eventBus.AddHandler<RunSelectedEventArgs>(onRunSelected);

            eventBus.FireEvent(this, new CommandEnableEventArgs(false, false));
            backgroundRunner.Run(place.Filename, true, null);
        }
示例#8
0
 public abstract void Start(IAcceptsOneControl viewFrame, IEventBus eventBus);