コード例 #1
0
 /// ------------------------------------------------------------------------------------
 internal void CIEViewSimilarRefresh()
 {
     if (m_resultView.Grid == null || !m_resultView.Grid.CIESimilarViewRefresh())
     {
         CIESimilarOptionsButton.Visible = false;
         AdjustWidth();
         OwningTabGroup.AdjustTabContainerWidth();
     }
 }
コード例 #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Clears the search results on the tab and sets the tab to an empty tab.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public void Clear()
        {
            RemoveResultView();

            if (OwningTabGroup.RecordView != null)
            {
                OwningTabGroup.RecordView.Clear();
            }

            SearchQuery = new SearchQuery();
            CIEOptionsButton.Visible        = false;
            CIESimilarOptionsButton.Visible = false;
            Text = EmptyTabText;
            AdjustWidth();
            OwningTabGroup.AdjustTabContainerWidth();
        }
コード例 #3
0
        /// ------------------------------------------------------------------------------------
        public void ToggleCIESimilarView()
        {
            if (m_resultView != null && m_resultView.Grid != null && m_resultView.Grid.Cache != null)
            {
                if (m_resultView.Grid.Cache.IsSimilarEnvironment)
                {
                    m_resultView.Grid.CIESimilarViewOff();
                }
                else
                {
                    m_resultView.Grid.CIESimilarViewOn();
                }

                // Force users to restart Find when toggling the CIEView
                FindInfo.CanFindAgain = false;

                CIESimilarOptionsButton.Visible = m_resultView.Grid.Cache.IsSimilarEnvironment;
                AdjustWidth();
                OwningTabGroup.AdjustTabContainerWidth();
            }
        }