예제 #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
        public object  GetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass)
        {
            object ret = null;

            if (_model != null)
            {
                ret = _model.Fact(IdsJoin(propPass, itemPass));
            }
            return(ret);
        }
예제 #3
0
 public void                            ItemDelete(ViewItemPass p)
 {
     foreach (ViewItem vi in this)
     {
         if (vi.Pass() == p)
         {
             Remove(vi);
             break;
         }
     }
 }
예제 #4
0
 public void                            ItemAdd(ViewItemPass p)
 {
     Add(new ViewItem(p, this));
 }
예제 #5
0
 public bool                            ItemAddCan(ViewItemPass p)
 {
     return(true);
 }
예제 #6
0
 public void    SetPropertyValue(ViewPropPass propPass, ViewItemPass itemPass, object value)
 {
 }
예제 #7
0
 public bool                            ItemDeleteCan(ViewItemPass p)
 {
     return(true);
 }
예제 #8
0
 internal ViewItem(ViewItemPass pass, ViewItemsSource coll)
 {
     _pass = pass; _coll = coll;
 }