protected void OnLightViewAdded(ILightView value) { LightViewPresenter lvp = new LightViewPresenter(value, mLightState.Lights[sLightIndex]); mLightViewPresenters.Add(lvp); sLightIndex++; }
public LightViewPresenter(ILightView pView, Light pModel) { mView = pView; mModel = pModel; }
void OnColorSet(ILightView value) { LightView lv = value as LightView; EventUtils.FireDualTypedEvent( LightUpdate, mLightViews.IndexOf(lv), lv.Color); }