示例#1
0
 public UcGui(IDiContainer di, IEventRoutingService eventRoutingService)
 {
     this.di                  = di;
     renderControl            = new UcRenderGuiControl();
     this.eventRoutingService = eventRoutingService;
     eventRoutingService.RegisterServiceDependency(typeof(UcGui), typeof(IWorldTreeService));
     eventRoutingService.SubscribeToAllAfter(typeof(UcGui).FullName, OnEveryEvent, true);
 }
示例#2
0
 public WindowManager(IMainForm mainForm, IEventRoutingService eventRoutingService, IWorldTreeService worldTreeService, IViewService viewService)
 {
     this.mainForm         = mainForm;
     this.worldTreeService = worldTreeService;
     this.viewService      = viewService;
     renderControls        = new IRenderGuiControl[] { mainForm.RenderControl };
     eventRoutingService.RegisterServiceDependency(typeof(IWindowManager), typeof(IWorldTreeService));
     eventRoutingService.Subscribe <IAppModeChangedEvent>(typeof(IWindowManager), nameof(OnAppModeChanged), OnAppModeChanged);
     eventRoutingService.SubscribeToAllAfter(typeof(IWindowManager).FullName, OnEveryEvent, true);
 }