private List <Plane> PlaneSelector(int selectedNation, int selectedRank)
        {
            this.selectedNation = selectedNation;
            this.selectedRank   = selectedRank;
            List <Plane> planesAll = PlaneCollection.GetPlane();
            var          planevar  = from p in planesAll
                                     where p.NationId == selectedNation
                                     where p.RankId == selectedRank
                                     select p;

            return(planevar.ToList <Plane>());
        }
        private void _InfoSpinnerRank_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e)
        {
            selectedRank = ranks[e.Position].Id;


            if (selectedNation == 100 && selectedRank == 100)
            {
                planes       = PlaneCollection.GetPlane();
                AdapterPlane = new PlaneAdapter(this, planes);
                _InfoSpinnerPlane.Adapter = AdapterPlane;
            }
            else
            if (selectedNation == 100)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                var          planevar  = from p in planesAll
                                         where p.RankId == selectedRank
                                         select p;
                planes       = planevar.ToList <Plane>();
                AdapterPlane = new PlaneAdapter(this, planes);
                _InfoSpinnerPlane.Adapter = AdapterPlane;
            }
            else
            if (selectedRank == 100)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                var          planevar  = from p in planesAll
                                         where p.NationId == selectedNation
                                         select p;
                planes       = planevar.ToList <Plane>();
                AdapterPlane = new PlaneAdapter(this, planes);
                _InfoSpinnerPlane.Adapter = AdapterPlane;
            }
            else
            {
                planes       = PlaneSelector(selectedNation, selectedRank);
                AdapterPlane = new PlaneAdapter(this, planes);
                _InfoSpinnerPlane.Adapter = AdapterPlane;
            }
        }
        private void ListShower()
        {
            if (selectedNation == 100 && selectedRank == 100)
            {
                planesToListView         = PlaneCollection.GetPlane();
                TheBestlistView          = new ListViewTheBestAdapter(this, planesToListView);
                _TheBestListView.Adapter = TheBestlistView;
            }
            else

            if (selectedNation == 100)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                var          planevar  = from p in planesAll
                                         where p.RankId == selectedRank
                                         select p;
                planesToListView         = planevar.ToList <Plane>();
                TheBestlistView          = new ListViewTheBestAdapter(this, planesToListView);
                _TheBestListView.Adapter = TheBestlistView;
            }
            else

            if (selectedRank == 100)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                var          planevar  = from p in planesAll
                                         where p.NationId == selectedNation
                                         select p;
                planesToListView         = planevar.ToList <Plane>();
                TheBestlistView          = new ListViewTheBestAdapter(this, planesToListView);
                _TheBestListView.Adapter = TheBestlistView;
            }
            else
            {
                planesToListView         = PlaneSelector(selectedNation, selectedRank);
                TheBestlistView          = new ListViewTheBestAdapter(this, planesToListView);
                _TheBestListView.Adapter = TheBestlistView;
            }
        }
        private void TaskSelector()
        {
            if (SelectedPotentialTaskPlane == 1)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.MaxSpeedAt0 descending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 2)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.MaxSpeedAt5000 descending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 3)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.Climb ascending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 4)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.TurnAt0 ascending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 5)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.BombLoad descending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 6)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.ThrustToWeightRatio descending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }

            if (SelectedPotentialTaskPlane == 7)
            {
                List <Plane> planesAll = PlaneCollection.GetPlane();
                double       step      = 1.0;
                var          planevar  = from p in planesAll
                                         where p.BR <= selectedPlaneBR + step && p.BR >= selectedPlaneBR - step && p.NationId != selectedNation
                                         orderby p.WeaponVolleyPerSecond descending
                                         select p;
                planespotential       = planevar.ToList <Plane>();
                AdapterListView       = new ListViewInfoAdapter(this, planespotential);
                _InfoListView.Adapter = AdapterListView;
            }
        }