private void ConnectQueryEvent(IDomain domain, ref bool IsConnected) { if (QueryEvent != null && (QueryObject == null || QueryObjectEvent == null)) { IObject Object = null; IObjectEvent ObjectEvent = null; QueryEvent.Connect(domain, ref Object, ref ObjectEvent); QueryObject = Object; QueryObjectEvent = ObjectEvent; QueryObjectEvent.SetIsProvidingCustomPageName(QueryEvent.EventSource, true); IsConnected = true; SetIsReachable(); } }