Exemplo n.º 1
0
        /// <summary>
        /// Assign controls to the search results window
        /// </summary>
        /// <param name="nMap">Network Map</param>
        /// <param name="violView">Violations view</param>
        /// <param name="miniMap">The mini-map</param>
        /// <param name="SearchText">Search Text</param>
        /// <param name="Parent">The parent builder</param>
        /// <param name="BaseData">The base data tables</param>
        /// <param name="ControlPressed">Whether the control button is pressed</param>
        /// <param name="viewSummary"></param>
        /// <param name="AltPressed">Whether the alt button is pressed</param>
        public bool SetControls(MM_Network_Map_DX nMap, MM_Violation_Viewer violView, MM_Mini_Map miniMap, String SearchText, MM_Form_Builder Parent, out MM_DataSet_Base BaseData, MM_Element_Summary viewSummary, bool ControlPressed, bool AltPressed)
        {
            MM_Repository.ViewChanged += new MM_Repository.ViewChangedDelegate(Repository_ViewChanged);
            this.nMap        = nMap;
            this.miniMap     = miniMap;
            this.violView    = violView;
            this.viewSummary = viewSummary;
            ConfigureSearch();
            this.txtSearch.Text = SearchText;
            this.SearchText     = SearchText;
            bool Resp = PerformSearch(ControlPressed, AltPressed);

            BaseData = this.BaseData;
            return(Resp);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Set our summary view
 /// </summary>
 /// <param name="viewSummary"></param>
 public void SetViewSummary(MM_Element_Summary viewSummary)
 {
     this.viewSummary = viewSummary;
 }