public PlaceController(IEventBus eventBus, IPresenterMapper presenterMapper, IAcceptsOneControl viewFrame) { this.eventBus = eventBus; this.presenterMapper = presenterMapper; this.viewFrame = viewFrame; }
public Services(IAcceptsOneControl viewFrame) { EventBus = new SimpleEventBus(); IPresenterMapper presenterMapper = new PresenterMapper(this); PlaceController = new PlaceController(EventBus, presenterMapper, viewFrame); TestView = new TestView(); }
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)); }
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); }
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); }
public abstract void Start(IAcceptsOneControl viewFrame, IEventBus eventBus);