public void OverrideContent(bool isOverridden) { if (CanOverride) { OverrideChanging?.Invoke(this, EventArgs.Empty); contentOverride = isOverridden ? OverrideType.New : OverrideType.Base; OverrideChanged?.Invoke(this, EventArgs.Empty); } }
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); } }
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); } }
void IAssetObjectNodeInternal.NotifyOverrideChanging() => OverrideChanging?.Invoke(this, EventArgs.Empty);
private void OnOverrideChanging(object sender, EventArgs e) { OverrideChanging?.Invoke(sender, e); }