AnyPlace.MainPage.into_selectedbuiding C# (CSharp) Method

into_selectedbuiding() private method

private into_selectedbuiding ( ) : bool
return bool
        private bool into_selectedbuiding()
        {
            if (_allbuildingfloors != null)
            {


                foreach (var obj1 in _allbuildingfloors.floors)
                {
                    if (obj1.buid.Equals(_selectedBuild))
                    {
                        var BBox = new GeoCoordinatesHelper(obj1.top_right_lat, obj1.top_right_lng, obj1.bottom_left_lat, obj1.bottom_left_lng);

                        //BBox.IncreaseBoundingBox(500);

                        var top_right_lat = BBox.NeLat;
                        var top_right_lon = BBox.NeLon;
                        var bottom_left_lat = BBox.SwLat;
                        var bottom_left_lon = BBox.SwnLon;

                        if (_myLatitude > bottom_left_lat && _myLatitude < top_right_lat &&
                      _myLongitude > bottom_left_lon &&
                      _myLongitude < top_right_lon)
                        {
                            return true;
                        }
                    }

                }
            }

            return false;
        }
MainPage