Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (DistanceLabel != null)
            {
                DistanceLabel.Dispose();
                DistanceLabel = null;
            }

            if (placeButton != null)
            {
                placeButton.Dispose();
                placeButton = null;
            }

            if (RatingLabel != null)
            {
                RatingLabel.Dispose();
                RatingLabel = null;
            }

            if (StarImageView != null)
            {
                StarImageView.Dispose();
                StarImageView = null;
            }
        }
Пример #2
0
        private void draw_leader_data(SpriteBatch sprite_batch, Vector2 offset)
        {
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            // Team leader
            // Background
            UnitBg.draw(sprite_batch, offset);
            // Labels
            Lv_Label.draw(sprite_batch, offset);
            Hp_Label.draw(sprite_batch, offset);
            Hp_Slash.draw(sprite_batch, offset);
            RatingLabel.draw(sprite_batch, offset);
            sprite_batch.End();
            // Data
            Face.draw(sprite_batch, offset);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            Leader_Name.draw(sprite_batch, offset);
            Lvl.draw(sprite_batch, offset);
            Hp.draw(sprite_batch, offset);
            Hp_Max.draw(sprite_batch, offset);
            Rating.draw(sprite_batch, offset);
            LeaderWeapon.draw(sprite_batch, offset);
            Map_Sprite.draw(sprite_batch, offset);
            sprite_batch.End();
        }
        void ReleaseDesignerOutlets()
        {
            if (DistanceLabel != null)
            {
                DistanceLabel.Dispose();
                DistanceLabel = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }

            if (PhotosButton != null)
            {
                PhotosButton.Dispose();
                PhotosButton = null;
            }

            if (RatingLabel != null)
            {
                RatingLabel.Dispose();
                RatingLabel = null;
            }

            if (ReviewsButton != null)
            {
                ReviewsButton.Dispose();
                ReviewsButton = null;
            }

            if (StartImage != null)
            {
                StartImage.Dispose();
                StartImage = null;
            }

            if (PlaceNameLabel != null)
            {
                PlaceNameLabel.Dispose();
                PlaceNameLabel = null;
            }
        }
Пример #4
0
        public override void Awake(NSObject context)
        {
            viewModel = ServiceContainer.Resolve <DetailsViewModel> ();

            RatingLabel.SetText(viewModel.Place.Rating.ToString());
            DistanceLabel.SetText(CoffeeFilterViewModel.GetDistanceToPlace(viewModel.Place, viewModel.Position));
            PlaceNameLabel.SetText(viewModel.Place.Name);

            SetMapRegion();
            AddMapAnnotation();
            EnableButtons(false);
            UpdatePlaceInfo();

                        #if !DEBUG
            Xamarin.Insights.Track("AppNav", new Dictionary <string, string> {
                { "page", "details" },
                { "name", viewModel.Place.Name }
            });
                        #endif
        }
        void ReleaseDesignerOutlets()
        {
            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (PilotSwitch != null)
            {
                PilotSwitch.Dispose();
                PilotSwitch = null;
            }

            if (RatingLabel != null)
            {
                RatingLabel.Dispose();
                RatingLabel = null;
            }

            if (RatingPickerView != null)
            {
                RatingPickerView.Dispose();
                RatingPickerView = null;
            }

            if (TypeLabel != null)
            {
                TypeLabel.Dispose();
                TypeLabel = null;
            }

            if (TypePickerView != null)
            {
                TypePickerView.Dispose();
                TypePickerView = null;
            }
        }