Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 /// <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;
 }