예제 #1
0
 public deseases RemoveDeseases(deseases _item, bool _complete = false)
 {
     cure_profiles_deseases.Remove(_item);
     if(_complete) Meridian.Default.deseasesStore.Delete(_item);
     return _item;
 }
예제 #2
0
 public deseases AddDeseases(deseases _item, bool _insertToStore = false)
 {
     if(cure_profiles_deseases.IndexOf(_item) != -1) return _item;
     cure_profiles_deseases.Add(_item);
     _item.profile_id = id;
     if(_insertToStore && !Meridian.Default.deseasesStore.Exists(_item.id))
     {
         Meridian.Default.deseasesStore.Insert(_item);
         _item.LoadAggregations(Meridian.Default);
     }
     return _item;
 }