public void ForgetFieldValue(WriteOffField field)
 {
     fieldListChangeHandler.forget(field);
     foreach (WriteOffField fvalue in fieldListChangeHandler.Items)
     {
         if (fvalue.position > field.position)
         {
             fvalue.position = fvalue.position - 1;
         }
     }
     field.position = -1;
 }
 /// <summary>
 /// Oublier un fils
 /// </summary>
 /// <param name="child"></param>
 public void ForgetChild(IHierarchyObject child)
 {
     foreach (IHierarchyObject item in childrenListChangeHandler.Items)
     {
         if (item.GetPosition() > child.GetPosition())
         {
             item.SetPosition(item.GetPosition() - 1);
         }
     }
     child.SetPosition(-1);
     childrenListChangeHandler.forget((PresentationSlideItem)child);
 }
Beispiel #3
0
 public void ForgetSlide(PresentationSlide slide)
 {
     foreach (PresentationSlide item in slideListChangeHandler.Items)
     {
         if (item.position > slide.position)
         {
             item.position = item.position - 1;
         }
     }
     slide.position = -1;
     slideListChangeHandler.forget((PresentationSlide)slide);
 }
Beispiel #4
0
 /// <summary>
 /// Oublier un fils
 /// </summary>
 /// <param name="child"></param>
 public void ForgetPeriodInterval(PeriodInterval Root)
 {
     foreach (PeriodInterval item in intervalListChangeHandler.Items)
     {
         if (item.GetPosition() > Root.GetPosition())
         {
             item.SetPosition(item.GetPosition() - 1);
         }
     }
     Root.SetPosition(-1);
     intervalListChangeHandler.forget(Root);
 }
 /// <summary>
 /// Oublier un fils
 /// </summary>
 /// <param name="child"></param>
 public void ForgetItem(GrilleRelationshipItem item, bool sort = true)
 {
     itemListChangeHandler.forget(item, sort);
     foreach (GrilleRelationshipItem child in itemListChangeHandler.Items)
     {
         if (child.primary == item.primary && child.position > item.position)
         {
             child.position = child.position - 1;
         }
     }
     item.position = -1;
 }