Exemple #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);
        }
        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);
        }