async void MainMenu_GoToInsertedInformationsForm(View arg1, object arg2) { if (CheckGpsConnection()) { var InsertedInformations = new InsertedInformations(); await Navigation.PushAsync(InsertedInformations); } }
public InsertedInformations_Partners(InsertedInformations InsertedInformations) { InitializeComponent(); Title = "مشتریان"; this.InsertedInformations = InsertedInformations; BusyIndicatorContainder.BackgroundColor = Color.FromRgba(255, 255, 255, 70); BusyIndicator.Color = Color.FromRgba(80, 100, 150, 255); PartnerItems.HasUnevenRows = true; PartnerItems.SeparatorColor = Color.FromHex("A5ABB7"); PartnerItems.ItemTemplate = new DataTemplate(typeof(InsertedInformationsPartnersCustomCell)); PartnerItems.ItemSelected += (sender, e) => { ((ListView)sender).SelectedItem = null; }; PartnerItems.ItemTapped += (sender, e) => { var TappedItem = (DBRepository.PartnerListModel)e.Item; PartnerItems_ItemTapped(TappedItem); }; PartnerItems.OnLongClick += PartnerItems_OnLongClick; VisitsSearchBar.TextChanged += async(sender, args) => { await FillPartners(args.NewTextValue); }; VisitsSearchBar.SearchButtonPressed += (sender, args) => { VisitsSearchBar.IsVisible = false; FiltersSection.IsVisible = true; RefreshToolbarItems(); }; justToday = new SettingField <bool>("PartnersList_JustToday", false).Value; JustTodaySwitch.IsToggled = justToday; justLocal = new SettingField <bool>("PartnersList_JustLocal", false).Value; JustLocalSwitch.IsToggled = justLocal; JustTodaySwitch.Toggled += FilterChanged; JustLocalSwitch.Toggled += FilterChanged; FillPartners(""); }