private UInt64[] IdsJoin(ViewPropPass propPass, ViewItemPass itemPass) { UInt64[] ret = null; List <UInt64> ids = new List <ulong>(); if (_pass.FixedIds != null) { foreach (UInt64 id in _pass.FixedIds) { ids.Add(id); } } if (propPass != null && propPass.IdsProp != null) { foreach (UInt64 id in propPass.IdsProp) { ids.Add(id); } } if (itemPass != null && itemPass.IdsItem != null) { foreach (UInt64 id in itemPass.IdsItem) { ids.Add(id); } } ret = ids.ToArray(); return(ret); }
internal void PropertyAdd(ViewPropPass p) { if (p != null) { _propsDynam.Add(new ViewItemPropertyDescr(_type, p, null)); } }
public object GetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass) { object ret = null; if (_model != null) { ret = _model.Fact(IdsJoin(propPass, itemPass)); } return(ret); }
internal void PropertyDelete(ViewPropPass p) { ViewItemPropertyDescr toDel = null; if (p != null) { foreach (ViewItemPropertyDescr pd in _propsDynam) { if (pd.Pass == p) { toDel = pd; break; } } if (toDel != null) { _propsDynam.Remove(toDel); } } }
public void ItemPropDelete(ViewPropPass p) { _itemTypeDelegator.PropertyDelete(p); }
public bool ItemPropDeleteCan(ViewPropPass p) { return(true); }
public void ItemPropAdd(ViewPropPass p) { _itemTypeDelegator.PropertyAdd(p); }
public bool ItemPropAddCan(ViewPropPass p) { return(true); }
public void SetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass, object value) { }
public ViewItemPropertyDescr(Type componentClass, ViewPropPass pass, Attribute[] attributes) : this(componentClass, pass.Name, pass.Type, attributes) { _passProp = pass; }
internal void SetPropertyValue(ViewPropPass propPass, object value) { _coll.SetPropertyValue(propPass, _pass, value); }
internal object GetPropertyValue(ViewPropPass propPass) { return(_coll.GetPropertyValue(propPass, _pass)); }