private void ConnectContent(IDomain domain, IArea currentArea, IObject currentObject, ref bool IsConnected) { IResource Resource = ContentResource; IObject Object = ContentObject; IObjectProperty ObjectProperty = ContentObjectProperty; IDeclarationSource ObjectPropertyKey = ContentKey; IsConnected |= ContentProperty.ConnectToResourceOrObject(domain, currentArea, currentObject, ref Resource, ref Object, ref ObjectProperty, ref ObjectPropertyKey); ContentResource = Resource; ContentObject = Object; ContentObjectProperty = ObjectProperty; ContentKey = ObjectPropertyKey; ContentObjectProperty?.SetIsRead(); }