private void StreetLoaded()
        {
            var streets = _streetsDataLoader.GetStreets();

            _completionListStore = new ListStore(typeof(Guid), typeof(string), typeof(string), typeof(string), typeof(string));

            foreach (var s in streets)
            {
                _completionListStore.AppendValues(
                    s.FiasGuid,
                    s.Name,
                    s.TypeName,
                    s.TypeShortName,
                    s.StreetDistrict
                    );
            }

            Application.Invoke((sender, e) =>
            {
                if (Completion != null)
                {
                    Completion.Model = _completionListStore;
                    if (HasFocus)
                    {
                        Completion.Complete();
                    }
                }
            });
        }
Beispiel #2
0
        private void StreetLoaded()
        {
            var streets = streetsDataLoader.GetStreets();

            completionListStore = new ListStore(typeof(string), typeof(string));
            foreach (var s in streets)
            {
                completionListStore.AppendValues(
                    s.Name,
                    s.Districts
                    );
            }
            Application.Invoke((sender, e) => {
                if (Completion != null)
                {
                    Completion.Model = completionListStore;
                    if (HasFocus)
                    {
                        Completion.Complete();
                    }
                }
            });
        }