예제 #1
0
        protected override void PublishResults(ICharSequence constraint, FilterResults filterResults)
        {
            if (filterResults != null && filterResults.Values != null && filterResults.Count > 0)
            {
                List <PersonSectionListAdapter <TListItemType> .ListSection> sectionList = filterResults.Values.ToNetObject <List <PersonSectionListAdapter <TListItemType> .ListSection> >();
                sectionedListAdapter.Sections = sectionList;
            }
            else
            {
                sectionedListAdapter.Sections = null;
            }

            // TODO sort out why this error occurs, has to do with no items in array
            try
            {
                sectionedListAdapter.NotifyDataSetChanged();
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }

            constraint.Dispose();
            if (filterResults != null)
            {
                filterResults.Dispose();
            }
        }
예제 #2
0
 protected override void PublishResults(ICharSequence constraint, FilterResults results)
 {
     using (var values = results.Values)
         adapter.lRuta = new List <Ruta>(values.ToArray <Ruta>());
     adapter.NotifyDataSetChanged();
     constraint.Dispose();
     results.Dispose();
 }
예제 #3
0
 protected override void PublishResults(ICharSequence constraint, FilterResults results)
 {
     using (var values = results.Values)
         _adapter._mItems = values.ToArray <WeatherViewModel>().ToList();
     _adapter.NotifyDataSetChanged();
     constraint.Dispose();
     results.Dispose();
 }
예제 #4
0
            protected override void PublishResults(Java.Lang.ICharSequence constraint, FilterResults results)
            {
                adapter.cursor = (ICursor)results.Values;
                adapter.ChangeCursor((ICursor)results.Values);
                //adapter.NotifyDataSetChanged ();

                constraint.Dispose();
                results.Dispose();
            }
 protected override void PublishResults(ICharSequence constraint, FilterResults results)
 {
     using (var values = results.Values)
     {
         adapter.SetFilter(values.ToArray <Object>().Select(r => r.ToNetObject <Country>()).ToList());
         constraint.Dispose();
         results.Dispose();
     }
 }
예제 #6
0
                protected override void PublishResults(ICharSequence constraint, FilterResults results)
                {
                    using (var values = results.Values)
                        adapter.exercises = values.ToArray <Java.Lang.Object>().Select(r => r.ToNetObject <dbExercise>()).ToList();

                    adapter.NotifyDataSetChanged();
                    constraint.Dispose();
                    results.Dispose();
                }
예제 #7
0
        protected override void PublishResults(Java.Lang.ICharSequence constraint, FilterResults results)
        {
            using (var values = results.Values)
            {
                SetItemsFromResults(values.ToArray <Java.Lang.Object>().Select(a => a.ToNetObject <T>()).ToList());
            }

            constraint.Dispose();
            results.Dispose();
        }
예제 #8
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            _adapter._currencies = results.Values.ToNetObject <List <string> >();

            _adapter.NotifyDataSetChanged();

            // Don't do this and see GREF counts rising
            constraint.Dispose();
            results.Dispose();
        }
예제 #9
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    _adapter.items = values.ToArray <Object>()
                                     .Select(r => r.ToNetObject <Gig>()).ToList();
                _adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #10
0
            protected override void PublishResults(Java.Lang.ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    a._items = values.ToArray <Java.Lang.Object>().Select(r => r.ToNetObject <EventShort>()).ToList();

                a.NotifyDataSetChanged();

                // Don't do this and see GREF counts rising
                constraint.Dispose();
                results.Dispose();
            }
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    _adapter._OrderList = values.ToArray <Object>()
                                          .Select(r => r.ToNetObject <InstalmentSummaryModel>()).ToList();
                _adapter.NotifyDataSetChanged();

                // Don't do this and see GREF counts rising
                constraint.Dispose();
                results.Dispose();
            }
예제 #12
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            using (var values = results.Values)
                adapter.listaPrijatelja =
                    values.ToArray <Java.Lang.Object>().Select(r => r.ToNetObject <KorisnikFollowDto>()).ToList();

            adapter.NotifyDataSetChanged();

            constraint.Dispose();
            results.Dispose();
        }
예제 #13
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    stopNamesAdapter.filteredStopNames = values?.ToArray <Java.Lang.String>()?.Select(r => r.ToString())?.ToArray() ?? new string[0];

                stopNamesAdapter.NotifyDataSetChanged();

                // Don't do this and see GREF counts rising
                constraint?.Dispose();
                results.Dispose();
            }
예제 #14
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    _adapter._rows = values.ToArray <Java.Lang.Object>().Select(a => a.ToNetObject <DataTableRow>()).ToList();
                }

                _adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #15
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    _adapter._ruleNames = values.ToArray <Java.Lang.String>()
                                          .Select(name => (string)name).ToList();
                }

                _adapter.NotifyDataSetChanged();
                constraint.Dispose();
                results.Dispose();
            }
예제 #16
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            using (var values = results.Values)
            {
                //_parent.Items = values.ToArray<Java.Lang.Object>().Select(a => a.ToNetObject<T>()).ToList();
            }

            _parent.NotifyDataSetChanged();

            constraint.Dispose();
            results.Dispose();
        }
예제 #17
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                adapter.floors = results.Values.ToArray <Java.Lang.Object>()
                                 .Select(res => res.ToNetObject <Floor>()).ToArray();

                Log.Info(tag, $"filterfinish floors count = {adapter.floors.Count()}, adapter count = {adapter.Count}");

                adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #18
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    mLocationAdapter.mFilteredLocations = values.ToArray <Java.Lang.Object>()
                                                          .Select(r => r.ToNetObject <LocationViewModel>()).ToList();

                mLocationAdapter.NotifyDataSetChanged();

                // Don't do this and see GREF counts rising
                constraint.Dispose();
                results.Dispose();
            }
예제 #19
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            using (var values = results.Values)
                _adapter.originalBooks = values.ToArray <Java.Lang.Object>()
                                         .Select(r => r.ToNetObject <Books>()).ToList();

            _adapter.NotifyDataSetChanged();

            // Don't do this and see GREF counts rising
            constraint.Dispose();
            results.Dispose();
        }
예제 #20
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            using (var values = results.Values)
                _parent._dataSource = values.ToArray <Object>()
                                      .Select(r => r.ToNetObject <Models.Repository>()).ToList();

            _parent.NotifyDataSetChanged();

            // Don't do this and see GREF counts rising
            constraint.Dispose();
            results.Dispose();
        }
            protected override void PublishResults(Java.Lang.ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    var list = values.ToArray <Object>().Select(a => a.ToNetObject <Character>()).ToArray();
                    _adapter.CharsList = new JavaList <Character>(list);
                }

                _adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #22
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    mAdapter.mUsers = values.ToArray <Object> ().Select(
                        result => result.ToNetObject <Profile> ()).ToList();
                }

                mAdapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #23
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    adapter.filteredList = values.ToArray <Java.Lang.Object>().Select(a =>
                                                                                      a.ToNetObject <ParkingModel>()).ToList();
                }

                adapter.mItems = adapter.filteredList;

                adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }
예제 #24
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            if (results.Count == FilterableDataProvider.AllItems.Count)
            {
                FilterableDataProvider.ResetResults();
            }
            else
            {
                using (var values = results.Values)
                    FilterableDataProvider.SetFilterResults(values.ToArray <Object> ().Select(r => r.ToNetObject <TData> ()).ToList());
            }

            // Don't do this and see GREF counts rising
            constraint.Dispose();
            results.Dispose();
        }
예제 #25
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                    _adapter._items = values.ToArray<Java.Lang.Object>()
                        .Select(r => r.ToNetObject<CalendarItem>()).ToList();

                _adapter.NotifyDataSetChanged();

                // Don't do this and see GREF counts rising
                constraint.Dispose();
                results.Dispose();
            }
예제 #26
0
            protected override void PublishResults(ICharSequence constraint, FilterResults results)
            {
                using (var values = results.Values)
                {
                    _adapter.Items = values.ToArray<Object>().Select(item => item.ToNetObject<ListItem>()).ToList();
                }

                _adapter.NotifyDataSetChanged();

                constraint.Dispose();
                results.Dispose();
            }