protected override void InitOverride(object target, object accessor, MemberInfo memberInfo, Action <object, object> eraseTargetCallback, string label = null) { base.InitOverride(target, accessor, memberInfo, eraseTargetCallback, label); BoundsAccessor boundsAccessor = new BoundsAccessor(this); m_center.Init(boundsAccessor, boundsAccessor, Strong.PropertyInfo((BoundsAccessor x) => x.Center, "Center"), null, "Center", OnValueChanging, null, OnEndEdit, false); m_extents.Init(boundsAccessor, boundsAccessor, Strong.PropertyInfo((BoundsAccessor x) => x.Extents, "Extents"), null, "Extents", OnValueChanging, null, OnEndEdit, false); }
protected override void InitOverride(object target, MemberInfo memberInfo, string label = null) { base.InitOverride(target, memberInfo, label); BoundsAccessor accessor = new BoundsAccessor(this); m_center.Init(accessor, Strong.PropertyInfo((BoundsAccessor x) => x.Center, "Center"), "Center", OnValueChanging, null, OnEndEdit, false); m_extents.Init(accessor, Strong.PropertyInfo((BoundsAccessor x) => x.Extents, "Extents"), "Extents", OnValueChanging, null, OnEndEdit, false); }
protected override void InitOverride(object target, object accessor, MemberInfo memberInfo, Action <object, object> eraseTargetCallback, string label = null) { base.InitOverride(target, accessor, memberInfo, eraseTargetCallback, label); ILocalization localization = IOC.Resolve <ILocalization>(); BoundsAccessor boundsAccessor = new BoundsAccessor(this); m_center.Init(boundsAccessor, boundsAccessor, Strong.PropertyInfo((BoundsAccessor x) => x.Center, "Center"), null, localization.GetString("ID_RTEditor_PE_BoundsEditor_Center", "Center"), OnValueChanging, null, OnEndEdit, false); m_extents.Init(boundsAccessor, boundsAccessor, Strong.PropertyInfo((BoundsAccessor x) => x.Extents, "Extents"), null, localization.GetString("ID_RTEditor_PE_BoundsEditor_Extents", "Extents"), OnValueChanging, null, OnEndEdit, false); }
protected override void InitOverride(object[] targets, object[] accessors, MemberInfo memberInfo, Action <object, object> eraseTargetCallback, string label = null) { base.InitOverride(targets, accessors, memberInfo, eraseTargetCallback, label); ILocalization localization = IOC.Resolve <ILocalization>(); int targetsCount = targets.Length; BoundsAccessor[] boundsAccessors = new BoundsAccessor[targetsCount]; for (int i = 0; i < targets.Length; ++i) { boundsAccessors[i] = new BoundsAccessor(this, i); } m_center.Init(boundsAccessors, boundsAccessors, Strong.PropertyInfo((BoundsAccessor x) => x.Center, "Center"), null, localization.GetString("ID_RTEditor_PE_BoundsEditor_Center", "Center"), OnValueChanging, null, OnEndEdit, false); m_extents.Init(boundsAccessors, boundsAccessors, Strong.PropertyInfo((BoundsAccessor x) => x.Extents, "Extents"), null, localization.GetString("ID_RTEditor_PE_BoundsEditor_Extents", "Extents"), OnValueChanging, null, OnEndEdit, false); }