コード例 #1
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((parent_id > 0) && (_meridian.health_factorsStore.Exists(parent_id)))
     {
         this.sub_health_factors_health_factors = _meridian.health_factorsStore.Get(parent_id);;
         this.sub_health_factors_health_factors.AddSubHealthFactors(this);
     }
 }
コード例 #2
0
 public health_factors RemoveSubHealthFactors(health_factors _item, bool _complete = false)
 {
     sub_health_factors.Remove(_item);
     if(_complete) Meridian.Default.health_factorsStore.Delete(_item);
     return _item;
 }
コード例 #3
0
 public health_factors AddSubHealthFactors(health_factors _item, bool _insertToStore = false)
 {
     if(sub_health_factors.IndexOf(_item) != -1) return _item;
     sub_health_factors.Add(_item);
     _item.parent_id = id;
     if(_insertToStore && !Meridian.Default.health_factorsStore.Exists(_item.id))
     {
         Meridian.Default.health_factorsStore.Insert(_item);
         _item.LoadAggregations(Meridian.Default);
     }
     return _item;
 }