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); }
public object GetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass) { object ret = null; if (_model != null) { ret = _model.Fact(IdsJoin(propPass, itemPass)); } return(ret); }
public void ItemDelete(ViewItemPass p) { foreach (ViewItem vi in this) { if (vi.Pass() == p) { Remove(vi); break; } } }
public void ItemAdd(ViewItemPass p) { Add(new ViewItem(p, this)); }
public bool ItemAddCan(ViewItemPass p) { return(true); }
public void SetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass, object value) { }
public bool ItemDeleteCan(ViewItemPass p) { return(true); }
internal ViewItem(ViewItemPass pass, ViewItemsSource coll) { _pass = pass; _coll = coll; }