예제 #1
0
 public void DeleteFieldValue(WriteOffField field)
 {
     field.position = -1;
     fieldListChangeHandler.AddDeleted(field);
     foreach (WriteOffField fvalue in fieldListChangeHandler.Items)
     {
         if (fvalue.position > field.position)
         {
             fvalue.position = fvalue.position - 1;
         }
     }
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="item"></param>
 public void RemoveItem(GrilleRelationshipItem item, bool sort = true)
 {
     item.isModified = true;
     itemListChangeHandler.AddDeleted(item, sort);
     foreach (GrilleRelationshipItem child in itemListChangeHandler.Items)
     {
         if (child.primary == item.primary && child.position > item.position)
         {
             child.position = child.position - 1;
         }
     }
 }
예제 #3
0
 /// <summary>
 /// Retire un fils
 /// </summary>
 /// <param name="child"></param>
 public void RemoveSlide(PresentationSlide slide)
 {
     foreach (PresentationSlide item in slideListChangeHandler.Items)
     {
         if (item.position > slide.position)
         {
             item.position = item.position - 1;
             slideListChangeHandler.AddUpdated((PresentationSlide)item);
         }
     }
     slide.position = -1;
     slideListChangeHandler.AddDeleted((PresentationSlide)slide);
 }
예제 #4
0
 public void RemovePeriodInterval(PeriodInterval interval)
 {
     foreach (PeriodInterval item in intervalListChangeHandler.Items)
     {
         if (item.GetPosition() > interval.GetPosition())
         {
             item.SetPosition(item.GetPosition() - 1);
             intervalListChangeHandler.AddUpdated(item);
         }
     }
     interval.SetPosition(-1);
     intervalListChangeHandler.AddDeleted(interval);
     UpdateParents();
 }
예제 #5
0
        public void DeleteShape(PresentationSlideItem shape)
        {
            foreach (PresentationSlideItem item in slideItemsListChangeHandler.Items)
            {
                if (item.GetPosition() > shape.GetPosition())
                {
                    item.SetPosition(item.GetPosition() - 1);
                    slideItemsListChangeHandler.AddUpdated(item);
                }
            }

            shape.SetPosition(-1);
            slideItemsListChangeHandler.AddDeleted(shape);
        }
예제 #6
0
        /// <summary>
        /// Retire un fils
        /// </summary>
        /// <param name="child"></param>
        public void RemoveChild(IHierarchyObject child)
        {
            foreach (IHierarchyObject item in childrenListChangeHandler.Items)
            {
                if (item.GetPosition() > child.GetPosition())
                {
                    item.SetPosition(item.GetPosition() - 1);
                    childrenListChangeHandler.AddUpdated((PresentationSlideItem)item);
                }
            }

            child.SetPosition(-1);
            childrenListChangeHandler.AddDeleted((PresentationSlideItem)child);
            UpdateParents();
        }