Esempio n. 1
0
        private void UpdateIndicators()
        {
            if (Indicator != null)
            {
                Indicator.RemoveFromSuperview();
            }

            this.Indicator = null;

            if (Mode == MBProgressHUDMode.Determinate)
            {
                Indicator = new MBRoundProgressView();
            }
            else
            {
                Indicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
                ((UIActivityIndicatorView)Indicator).StartAnimating();
            }

            this.AddSubview(Indicator);
        }
Esempio n. 2
0
        private void UpdateIndicators()
        {
            if (Indicator != null)
            {
                Indicator.RemoveFromSuperview();
            }

            this.Indicator = null;

            if (Mode == MBProgressHUDMode.Determinate)
            {
                Indicator = new MBRoundProgressView();
            }
            else
            {
                Indicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
                ((UIActivityIndicatorView)Indicator).StartAnimating();
            }

            this.AddSubview(Indicator);
        }