public PartnerListForm_MapView(PartnerListForm PartnerListForm)
        {
            InitializeComponent();

            Title = "نقشه";

            _NearbyCustomers_DistanceSlider.Minimum       = 0;
            _NearbyCustomers_DistanceSlider.Maximum       = 100;
            _NearbyCustomers_DistanceSlider.Value         = 0.000324684131;
            _NearbyCustomers_DistanceSlider.ValueChanged += (sender, e) => {
                if (Math.Abs(PartnerListForm.NearbyCustomers_DistanceSlider - _NearbyCustomers_DistanceSlider.Value) >= 0.5)
                {
                    PartnerListForm.NearbyCustomers_DistanceSlider = _NearbyCustomers_DistanceSlider.Value;
                }
            };

            this.PartnerListForm = PartnerListForm;

            Map = new CustomMap(MapSpan.FromCenterAndRadius(new Position(32.7295492, 53.9990942), Distance.FromMiles(650)))
            {
                IsShowingUser = true
            };
            Map.CustomPins = new List <CustomPin>();
            PartnersMapContainer.Children.Add(Map);
            Map.ShowingPinChanged += Map_OnShowingPinChanged;

            PartnersSearchBar.TextChanged += async(sender, args) => {
                if (CurrentPageSet)
                {
                    await PartnerListForm.FillPartners(args.NewTextValue);

                    if (PartnerListForm.ListView.PartnersSearchBar.Text != args.NewTextValue)
                    {
                        PartnerListForm.ListView.PartnersSearchBar.Text = args.NewTextValue;
                    }
                }
            };
            PartnersSearchBar.SearchButtonPressed += async(sender, args) => {
                await PartnersSearchBar.FadeTo(0);

                PartnersSearchBar.IsVisible = false;
                PartnerListForm.ListView.PartnersSearchBar.IsVisible = false;
                if (App.UseVisitProgram.Value)
                {
                    FiltersSection.IsVisible = true;
                    await FiltersSection.FadeTo(1);

                    PartnerListForm.ListView.FiltersSection.IsVisible = true;
                    await PartnerListForm.ListView.FiltersSection.FadeTo(1);
                }
            };

            IncludeVisitedsSwitch.Toggled += PartnerListForm.FilterChanged;
            if (!App.UseVisitProgram.Value)
            {
                FiltersSection.IsVisible = false;
            }
        }
        public PartnerListForm_ListView(PartnerListForm PartnerListForm)
        {
            InitializeComponent();

            Title = "لیست";

            _NearbyCustomers_DistanceSlider.Minimum       = 0;
            _NearbyCustomers_DistanceSlider.Maximum       = 100;
            _NearbyCustomers_DistanceSlider.Value         = 0.000324684131;
            _NearbyCustomers_DistanceSlider.ValueChanged += (sender, e) => {
                if (Math.Abs(PartnerListForm.NearbyCustomers_DistanceSlider - _NearbyCustomers_DistanceSlider.Value) >= 0.5)
                {
                    PartnerListForm.NearbyCustomers_DistanceSlider = _NearbyCustomers_DistanceSlider.Value;
                }
            };

            this.PartnerListForm = PartnerListForm;

            CustomPartnerListCell.HasGroupColumn = App.ShowPartnerGroupInList.Value;
            PartnerItems.ItemTemplate            = new DataTemplate(typeof(CustomPartnerListCell));

            PartnerItems.ItemSelected  += PartnerItems_ItemSelected;
            PartnerItems.ItemTapped    += PartnerItems_ItemTapped;
            PartnerItems.SeparatorColor = Color.FromHex("A5ABB7");
            PartnerItems.HasUnevenRows  = true;

            PartnersSearchBar.TextChanged += async(sender, args) => {
                if (CurrentPageSet)
                {
                    await PartnerListForm.FillPartners(args.NewTextValue);

                    if (PartnerListForm.MapView.PartnersSearchBar.Text != args.NewTextValue)
                    {
                        PartnerListForm.MapView.PartnersSearchBar.Text = args.NewTextValue;
                    }
                }
            };
            PartnersSearchBar.SearchButtonPressed += async(sender, args) => {
                await PartnersSearchBar.FadeTo(0);

                PartnersSearchBar.IsVisible = false;
                PartnerListForm.MapView.PartnersSearchBar.IsVisible = false;
                if (App.UseVisitProgram.Value)
                {
                    FiltersSection.IsVisible = true;
                    await FiltersSection.FadeTo(1);

                    PartnerListForm.MapView.FiltersSection.IsVisible = true;
                    await PartnerListForm.MapView.FiltersSection.FadeTo(1);
                }
            };

            IncludeVisitedsSwitch.Toggled += PartnerListForm.FilterChanged;
            if (!App.UseVisitProgram.Value)
            {
                FiltersSection.IsVisible = false;
            }
        }