Esempio n. 1
0
        private async void DisappearPopup()
        {
            PopupRegister.IsEnabled = false;
            PopupRegister.IsVisible = false;
            WaitingStack.IsVisible  = true;
            MyListView.BeginRefresh();
            await LoginToGame();

            ContactsTab.IsVisible = true;
            MyListView.EndRefresh();
            WaitingStack.IsVisible         = false;
            MainPageLayout.BackgroundColor = Color.Default;
            MyListView.IsVisible           = true;
        }
        private void UpdateList(string txtvalue)
        {
            MyListView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(txtvalue))
            {
                MyListView.ItemsSource = _viewmodel.PlotListFull;
            }
            else
            {
                MyListView.ItemsSource = _viewmodel.PlotListFull.Where(i => i.VSNPLOTNAME.Contains(txtvalue));
            }
            MyListView.EndRefresh();
        }
Esempio n. 3
0
        private void UpdateList(string txtvalue = null)
        {
            MyListView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(txtvalue))
            {
                MyListView.ItemsSource = _viewmodel.TreeStemListFull;
            }
            else
            {
                MyListView.ItemsSource = _viewmodel.TreeStemListFull.Where(i => i.TREENUMBER.Equals(Int32.Parse(txtvalue)));
            }
            MyListView.EndRefresh();
        }
Esempio n. 4
0
        private void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            MyListView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(e.NewTextValue))
            {
                MyListView.ItemsSource = _viewmodel.PlotListFull;
            }
            else
            {
                MyListView.ItemsSource = _viewmodel.PlotListFull.Where(i => i.PLOTNUM.Contains(e.NewTextValue));
            }

            MyListView.EndRefresh();
        }
        private void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            MyListView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(e.NewTextValue))
            {
                MyListView.ItemsSource = _viewmodel.PersonList;
            }
            else
            {
                MyListView.ItemsSource = _viewmodel.PersonList.Where(i => i.LASTNAME.ToUpper().Contains(e.NewTextValue.ToUpper()));
            }

            MyListView.EndRefresh();
        }
        private void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            MyListView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(e.NewTextValue))
            {
                MyListView.ItemsSource = _viewmodel.TreeStemListFull;
            }
            else
            {
                MyListView.ItemsSource = _viewmodel.TreeStemListFull.Where(i => i.TREENUM.Equals(Int32.Parse(e.NewTextValue)));
            }

            MyListView.EndRefresh();
        }
Esempio n. 7
0
        public OrdonnancesListPage()
        {
            InitializeComponent();

            MessagingCenter.Subscribe <StorageService <Ordonnance> >(this, "RefreshOrdonanceList", (obj) =>
            {
                MyListView?.BeginRefresh();
            });

            MessagingCenter.Subscribe <LibermedicalTabbedNavigation, int>(this, "PageChanged", (arg1, arg2) =>
            {
                if (arg2 == 2)
                {
                    AppearRefresh = true;
                    MyListView.BeginRefresh();
                }
            });

            MessagingCenter.Subscribe <OrdonnanceCreateEditViewModel>(this, "RefreshOrdoList", (arg1) =>
            {
                AppearRefresh = true;
                MyListView.BeginRefresh();
            });


            MessagingCenter.Subscribe <FilterPage, Filter>(this, Events.UpdatePrescriptionFilters, (sender, filter) =>
            {
                _filter = filter;

                if (string.IsNullOrWhiteSpace(searchBar.Text))
                {
                    ApplyFilter(filter);
                }
                else
                {
                    Handle_SearchButtonPressed(null, new TextChangedEventArgs(searchBar.Text, searchBar.Text));
                }
            });

            MessagingCenter.Subscribe <OrdonnancesListViewModel, Filter>(this, Events.UpdatePrescriptionFilters, (sender, filter) =>
            {
                _filter = filter;
                ApplyFilter(filter);
                MyListView.ItemsSource = (BindingContext as OrdonnancesListViewModel).Ordonnances;
            });
        }
Esempio n. 8
0
        // SearchBar_OnTextChanged - responds to SearchBar in MainPage.xaml
        private void SearchBar_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            // Starts refresh of MyListView
            MyListView.BeginRefresh();

            // if the search field is empty, an alert is displayed to the user telling them to type something
            if (string.IsNullOrWhiteSpace(e.NewTextValue))
            {
                DisplayAlert("Error", "Please type a title to search for", "OK");
            }
            // otherwise, the word they have searched for is searched against the MyListView.ItemsSource
            // User's search must be an exact match to the item, i.e., 'The Lord of the Rings' will not find 'Lord of the Rings'
            else
            {
                MyListView.ItemsSource = movieItems.Where(i => i.Contains(e.NewTextValue));
            }

            // Ends refresh of MyListView
            MyListView.EndRefresh();
        }
Esempio n. 9
0
 private void ContentPage_Appearing(object sender, EventArgs e)
 {
     MyListView.BeginRefresh();
 }