optimise station database by stripping unused info
This commit is contained in:
19
UI/StationSuggestionProvider.cs
Normal file
19
UI/StationSuggestionProvider.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using AutoCompleteTextBox.Editors;
|
||||
using NonaBGS.EDDB;
|
||||
|
||||
namespace NonaBGS.UI {
|
||||
public class StationSuggestionProvider : ISuggestionProvider {
|
||||
private int system_id = 0;
|
||||
private Stations stations = null;
|
||||
|
||||
public StationSuggestionProvider(Stations stations, int system_id) {
|
||||
this.system_id = system_id;
|
||||
this.stations = stations;
|
||||
}
|
||||
|
||||
public IEnumerable GetSuggestions(string filter) {
|
||||
return stations.StationNamesBySystemId(system_id, filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user