Example #1
0
 public void OverrideContent(bool isOverridden)
 {
     if (CanOverride)
     {
         OverrideChanging?.Invoke(this, EventArgs.Empty);
         contentOverride = isOverridden ? OverrideType.New : OverrideType.Base;
         OverrideChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Example #2
0
 public void OverrideKey(bool isOverridden, Index index)
 {
     if (CanOverride)
     {
         OverrideChanging?.Invoke(this, EventArgs.Empty);
         SetKeyOverride(isOverridden ? OverrideType.New : OverrideType.Base, index);
         OverrideChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Example #3
0
        public void OverrideDeletedItem(bool isOverridden, ItemId deletedId)
        {
            CollectionItemIdentifiers ids;

            if (CanOverride && TryGetCollectionItemIds(Content.Retrieve(), out ids))
            {
                OverrideChanging?.Invoke(this, EventArgs.Empty);
                SetOverride(isOverridden ? OverrideType.New : OverrideType.Base, deletedId, itemOverrides);
                if (isOverridden)
                {
                    ids.MarkAsDeleted(deletedId);
                }
                else
                {
                    ids.UnmarkAsDeleted(deletedId);
                }
                OverrideChanged?.Invoke(this, EventArgs.Empty);
            }
        }
Example #4
0
 void IAssetObjectNodeInternal.NotifyOverrideChanging() => OverrideChanging?.Invoke(this, EventArgs.Empty);
Example #5
0
 private void OnOverrideChanging(object sender, EventArgs e)
 {
     OverrideChanging?.Invoke(sender, e);
 }