Example #1
0
 /// <summary>
 /// Rajoute un fils
 /// </summary>
 /// <param name="child"></param>
 public void AddChild(IHierarchyObject child)
 {
     child.SetPosition(childrenListChangeHandler.Items.Count);
     child.SetParent(this);
     childrenListChangeHandler.AddNew((PeriodName)child);
     UpdateParents();
     OnPropertyChanged("childrenListChangeHandler.Items");
 }
 public void AddFieldValue(WriteOffField field)
 {
     field.position = fieldListChangeHandler.Items.Count;
     fieldListChangeHandler.AddNew(field);
 }
Example #3
0
 public void AddTreeItem(CombinedTransformationTreeItem item)
 {
     item.position = treeItemListChangeHandler.getItems().Count;
     treeItemListChangeHandler.AddNew(item);
     item.parent = this;
 }
Example #4
0
 public void AddPeriodInterval(PeriodInterval interval)
 {
     interval.SetPosition(intervalListChangeHandler.Items.Count);
     intervalListChangeHandler.AddNew(interval);
     UpdateParents();
 }
Example #5
0
 public void AddFieldValue(WriteOffFieldValue fieldValue)
 {
     fieldValue.position = writeOffFieldValueListChangeHandler.Items.Count;
     writeOffFieldValueListChangeHandler.AddNew(fieldValue);
 }
Example #6
0
 public void AddEntity(Entity entity)
 {
     entityListChangeHandler.AddNew(entity);
     entity.model = this;
 }
Example #7
0
 public void AddShape(PresentationSlideItem shape)
 {
     shape.SetPosition(slideItemsListChangeHandler.Items.Count + 1);
     slideItemsListChangeHandler.AddNew(shape);
 }
Example #8
0
 public void AddSlide(PresentationSlide slide)
 {
     slide.position = slideListChangeHandler.Items.Count + 1;
     slideListChangeHandler.AddNew((PresentationSlide)slide);
     OnPropertyChanged("slideListChangeHandler.Items");
 }
Example #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="item"></param>
 public void AddItem(GrilleRelationshipItem item, bool sort = true)
 {
     item.isModified = true;
     //item.position = itemListChangeHandler.Items.Count;
     itemListChangeHandler.AddNew(item, sort);
 }