public override void ViewDidLoad()
      {
         base.ViewDidLoad();
         RootElement root = Root;
         root.UnevenRows = true;

         _imageView = new UIImageView(View.Frame);
         _messageElement = new StringElement("");

         _button = new StyledStringElement("", delegate
         {
            if (OnButtonClick != null)
            {
               if (_progressView == null)
                  _progressView = new ProgressView();

               _progressView.Show("Please wait",
                  delegate()
               {
                  OnButtonClick(this, new EventArgs());
               });
            }
         }
         );
         root.Add(new Section() {_button });
         root.Add(new Section() {_messageElement});
         root.Add(new Section() {_imageView});
      }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            RootElement root = Root;

            root.UnevenRows = true;

            _imageView      = new UIImageView(View.Frame);
            _messageElement = new StringElement("");

            _button = new StyledStringElement("", delegate
            {
                if (OnButtonClick != null)
                {
                    if (_progressView == null)
                    {
                        _progressView = new ProgressView();
                    }

                    _progressView.Show("Please wait",
                                       delegate()
                    {
                        OnButtonClick(this, new EventArgs());
                    });
                }
            }
                                              );
            root.Add(new Section()
            {
                _button
            });
            root.Add(new Section()
            {
                _messageElement
            });
            root.Add(new Section()
            {
                _imageView
            });
        }