protected override void OnInit(EventArgs e)
 {
     using (new SPMonitoredScope(this.Title + " OnInit"))
     {
         this._qdra        = SharedQueryManager.GetInstance(this.Page, this.QueryID).QueryManager;
         this._forceOnInit = false;
         base.OnInit(e);
     }
 }
 protected void AppendQuery()
 {
     if (this.QueryToAppend != null)
     {
         var qm = SharedQueryManager.GetInstance(this.Page, (QueryId)this.QueryId).QueryManager;
         if (qm.UserQuery != "")
         {
             qm.UserQuery = "(" + qm.UserQuery + ") ";
         }
         qm.UserQuery += Utility.SubstituteParameters(this.QueryToAppend, parameters);
     }
 }
        public HighConfidenceResultsDataSourceView(HighConfidenceResultsDataSource dataSourceOwner, string viewName)
            : base(dataSourceOwner, viewName)
        {
            if (dataSourceOwner == null)
            {
                throw new ArgumentNullException("dataSourceOwner");
            }
            HighConfidenceResultsDataSource source = base.DataSourceOwner as HighConfidenceResultsDataSource;

            if (source == null)
            {
                throw new ArgumentOutOfRangeException();
            }
            HighConfidencePartialMatchWebPart parentWebpart = source.ParentWebpart as HighConfidencePartialMatchWebPart;

            if (parentWebpart == null)
            {
                throw new ArgumentOutOfRangeException();
            }
            base.QueryManager = SharedQueryManager.GetInstance(parentWebpart.Page, parentWebpart.QueryID).QueryManager;
        }