예제 #1
0
        void ShowAnimation(bool show)
        {
            CoffeeAnimationView.SetHidden(!show);
            ImageGroup.SetHidden(!show);

            if (show)
            {
                ImageGroup.SetBackgroundColor(UIColor.FromRGB(239, 235, 233));
                CoffeeAnimationView.SetImage("ic_mug");
                CoffeeAnimationView.StartAnimating(new NSRange(0, 9), 3.0, Int32.MaxValue);
            }
            else
            {
                ImageGroup.SetBackgroundColor(UIColor.Black);
                CoffeeAnimationView.StopAnimating();
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CoffeeAnimationView != null)
            {
                CoffeeAnimationView.Dispose();
                CoffeeAnimationView = null;
            }

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

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

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

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

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