public void SetListFlags(cListFlags pListFlags, cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cMailboxCacheItem), nameof(SetListFlags), pListFlags); if (pListFlags == null) { throw new ArgumentNullException(nameof(pListFlags)); } fMailboxProperties lDifferences = ZSetExists((pListFlags.Flags & fListFlags.nonexistent) == 0) | cListFlags.Differences(mListFlags, pListFlags); mListFlags = pListFlags; mSynchroniser.InvokeMailboxPropertiesChanged(this, lDifferences, lContext); }
public void ResetExists(cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cMailboxCacheItem), nameof(ResetExists)); fMailboxProperties lProperties; if (mExists == true) { lProperties = fMailboxProperties.exists; } else { lProperties = 0; } mExists = false; mListFlags = null; mStatus = null; mMailboxStatus = null; mSelectedProperties = cMailboxSelectedProperties.NeverBeenSelected; mSynchroniser.InvokeMailboxPropertiesChanged(this, lProperties, lContext); }