Exemplo 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);
        }
Exemplo 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);
        }