예제 #1
0
        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);
        }
예제 #2
0
 internal void                                   PropertyAdd(ViewPropPass p)
 {
     if (p != null)
     {
         _propsDynam.Add(new ViewItemPropertyDescr(_type, p, null));
     }
 }
예제 #3
0
        public object  GetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass)
        {
            object ret = null;

            if (_model != null)
            {
                ret = _model.Fact(IdsJoin(propPass, itemPass));
            }
            return(ret);
        }
예제 #4
0
        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);
                }
            }
        }
예제 #5
0
 public void                            ItemPropDelete(ViewPropPass p)
 {
     _itemTypeDelegator.PropertyDelete(p);
 }
예제 #6
0
 public bool                            ItemPropDeleteCan(ViewPropPass p)
 {
     return(true);
 }
예제 #7
0
 public void                            ItemPropAdd(ViewPropPass p)
 {
     _itemTypeDelegator.PropertyAdd(p);
 }
예제 #8
0
 public bool                            ItemPropAddCan(ViewPropPass p)
 {
     return(true);
 }
예제 #9
0
 public void    SetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass, object value)
 {
 }
예제 #10
0
 public ViewItemPropertyDescr(Type componentClass, ViewPropPass pass, Attribute[] attributes) : this(componentClass, pass.Name, pass.Type, attributes)
 {
     _passProp = pass;
 }
예제 #11
0
 internal void    SetPropertyValue(ViewPropPass propPass, object value)
 {
     _coll.SetPropertyValue(propPass, _pass, value);
 }
예제 #12
0
 internal object  GetPropertyValue(ViewPropPass propPass)
 {
     return(_coll.GetPropertyValue(propPass, _pass));
 }