private void CitiesLoaded() { Application.Invoke((senderObject, eventArgs) => { var cities = _citiesDataLoader.GetCities(); _completionListStore = new ListStore(typeof(Guid), typeof(string), typeof(string), typeof(string)); foreach (var city in cities) { _completionListStore.AppendValues( city.FiasGuid, city.TypeName, city.TypeShortName, city.Name ); } if (Completion != null) { Completion.Model = _completionListStore; if (HasFocus) { Completion.Complete(); } } }); }
private void CitiesLoaded() { Application.Invoke((senderObject, eventArgs) => { OsmCity[] cities = citiesDataLoader.GetCities(); completionListStore = new ListStore(typeof(string), typeof(string), typeof(LocalityType), typeof(long)); foreach (var c in cities) { completionListStore.AppendValues( c.Name, c.SuburbDistrict, c.LocalityType, c.OsmId ); } if (Completion != null) { Completion.Model = completionListStore; if (HasFocus) { Completion?.Complete(); } } }); }