Beispiel #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);
 }
Beispiel #3
0
 public void AddTreeItem(CombinedTransformationTreeItem item)
 {
     item.position = treeItemListChangeHandler.getItems().Count;
     treeItemListChangeHandler.AddNew(item);
     item.parent = this;
 }
Beispiel #4
0
 public void AddPeriodInterval(PeriodInterval interval)
 {
     interval.SetPosition(intervalListChangeHandler.Items.Count);
     intervalListChangeHandler.AddNew(interval);
     UpdateParents();
 }
Beispiel #5
0
 public void AddFieldValue(WriteOffFieldValue fieldValue)
 {
     fieldValue.position = writeOffFieldValueListChangeHandler.Items.Count;
     writeOffFieldValueListChangeHandler.AddNew(fieldValue);
 }
Beispiel #6
0
 public void AddEntity(Entity entity)
 {
     entityListChangeHandler.AddNew(entity);
     entity.model = this;
 }
Beispiel #7
0
 public void AddShape(PresentationSlideItem shape)
 {
     shape.SetPosition(slideItemsListChangeHandler.Items.Count + 1);
     slideItemsListChangeHandler.AddNew(shape);
 }
Beispiel #8
0
 public void AddSlide(PresentationSlide slide)
 {
     slide.position = slideListChangeHandler.Items.Count + 1;
     slideListChangeHandler.AddNew((PresentationSlide)slide);
     OnPropertyChanged("slideListChangeHandler.Items");
 }
 /// <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);
 }