public override bool Connect(IApplicationData data, IEventAggregator eventaggre) { _data = data; _eventaggre = eventaggre; _doc = _data.ActiveDocument as IRBuilderDocument; _manager = _doc.GetLightsManager(); eventaggre.GetEvent <OnTransformNodeSelectedOnScreen>().Subscribe(OnTransformNodeSelectedOnScreenHandler); return(true); }
public LightCommands(IApplicationData data, IRLightManager manager) { Data = data; _manager = manager; }