@@ -75,40 +75,6 @@ static Elements() { }
7575
7676 internal const double COMPLETE = 100.0d ;
7777
78- #region Engine map table
79-
80- // TODO: FOR SERVER ONLY, DEPRECATE
81-
82- internal const int ROW_EMT2_THR = 0 ;
83- internal const int ROW_EMT2_NAME = 1 ;
84- internal const int ROW_EMT2_RESULTS = 2 ;
85- internal const int ROW_EMT2_STATUS = 3 ;
86- internal const int ROW_EMT2_TIMEOUT = 4 ;
87-
88-
89- public static SpcTable GetEngineMapTableBase ( )
90- {
91- var table = new SpcTable ( ) ;
92-
93- var columns = GetColumns ( "Thread" , nameof ( BaseSearchEngine . Name ) , nameof ( SearchResult . Results ) ,
94- nameof ( SearchResult . Status ) , nameof ( BaseSearchEngine . Timeout ) ) ;
95-
96- table . AddColumns ( columns . ToArray ( ) ) ;
97- return table ;
98- }
99-
100- private static TableColumn GetColumn ( string name )
101- {
102- return new TableColumn ( new Text ( name , Sty_Grid1 ) ) { } ;
103- }
104-
105- public static IEnumerable < TableColumn > GetColumns ( params string [ ] names )
106- {
107- return names . Select ( GetColumn ) ;
108- }
109-
110- #endregion
111-
11278
11379#region Prompts
11480
@@ -123,7 +89,7 @@ public static IEnumerable<TableColumn> GetColumns(params string[] names)
12389 }
12490 } ;
12591
126- public static readonly TextPrompt < string > Prm_Num2 = new ( Markup . Escape ( "[#.#]" ) )
92+ public static readonly TextPrompt < string > Prm_Selection = new ( Markup . Escape ( "[#.#]" ) )
12793 {
12894 ShowChoices = false ,
12995 ShowDefaultValue = false ,
@@ -199,6 +165,8 @@ public static SpcTable CreateFullResultTable()
199165
200166#endregion
201167
168+ #region
169+
202170 internal static Grid CreateConfigGrid ( SearchConfig cfg , SearchQuery query )
203171 {
204172 var dt = new Grid ( ) ;
@@ -307,4 +275,40 @@ internal static Grid MapToGrid<TKey, TValue>(IDictionary<TKey, TValue> dictionar
307275 return grd ;
308276 }
309277
278+ #endregion
279+
280+ #region Engine map table
281+
282+ // TODO: FOR SERVER ONLY, DEPRECATE
283+
284+ internal const int ROW_EMT2_THR = 0 ;
285+ internal const int ROW_EMT2_NAME = 1 ;
286+ internal const int ROW_EMT2_RESULTS = 2 ;
287+ internal const int ROW_EMT2_STATUS = 3 ;
288+ internal const int ROW_EMT2_TIMEOUT = 4 ;
289+
290+
291+ public static SpcTable GetEngineMapTableBase ( )
292+ {
293+ var table = new SpcTable ( ) ;
294+
295+ var columns = GetColumns ( "Thread" , nameof ( BaseSearchEngine . Name ) , nameof ( SearchResult . Results ) ,
296+ nameof ( SearchResult . Status ) , nameof ( BaseSearchEngine . Timeout ) ) ;
297+
298+ table . AddColumns ( columns . ToArray ( ) ) ;
299+ return table ;
300+ }
301+
302+ private static TableColumn GetColumn ( string name )
303+ {
304+ return new TableColumn ( new Text ( name , Sty_Grid1 ) ) { } ;
305+ }
306+
307+ public static IEnumerable < TableColumn > GetColumns ( params string [ ] names )
308+ {
309+ return names . Select ( GetColumn ) ;
310+ }
311+
312+ #endregion
313+
310314}
0 commit comments