Пример #1
0
        public override void Filter_Clicked(object sender, EventArgs e)
        {
            if (Tapped)
            {
                return;
            }
            Tapped = true;
            var connection = ConnectionClass.CreateDatabase();
            var result     = connection.Query <IssosList>("select DISTINCT DORNAME from I_ISSO").ToList();
            var dornames   = new ObservableCollection <ModelForSelect>();

            foreach (var res in result)
            {
                dornames.Add(new ModelForSelect(res.DORNAME, res.DORNAME == SelectedRoad));
            }
            dornames.Insert(0, new ModelForSelect("[Все]", "[Все]" == SelectedRoad));
            //selected_road = await DisplayActionSheet("Выберите дорогу:", "Отмена", null, dornames.ToArray());
            var selectedListViewPopupPage = new SelectedListViewPopupPage(null, dornames, "Выбранная дорога");

            selectedListViewPopupPage.SaveChanges += SelectedListViewPopupPage_SaveChanges;
            var popupPage = new CommonPopupPage(selectedListViewPopupPage, selectedListViewPopupPage.Header);

            Navigation.PushPopupAsync(popupPage);
            Tapped = false;
            connection.Close();
        }
Пример #2
0
        private void ShowDefectFilterPage()
        {
            var defFilterPopupPage = new DefFilterPopupPage(_defFilter);

            defFilterPopupPage.ApplyFilters += DefFilterPopupPage_ApplyFilters;
            var popupPage = new CommonPopupPage(defFilterPopupPage, DefFilterPopupPage.Header);

            Navigation.PushPopupAsync(popupPage);
        }
Пример #3
0
        private void AddDefectContentPage()
        {
            //AddIssoDefectContentPageList addDefectContentPage = new AddIssoDefectContentPageList(C_ISSO);
            //Navigation.PushAsync(addDefectContentPage);
            var popupPage = new FindDefectsPopupPage(_cIsso);

            popupPage.UseSearchView      += PopupPage_UseSearchView;
            popupPage.UseTraditionalView += PopupPage_UseTraditionalView;
            var commonPopupPage = new CommonPopupPage(popupPage, FindDefectsPopupPage.Header);

            Navigation.PushPopupAsync(commonPopupPage);
        }