Esempio n. 1
0
 public void DisplayTwitts(List <Twitt> twitts, GetMoreTwittsDelegate getMoreTwitts, ViewTwittDelegate viewTwittDelegate)
 {
     _tableSource.SetSource(twitts);
     _tableView.ReloadData();
     _getMoreTwittsDelegate = getMoreTwitts;
     _viewTwittDelegate     = viewTwittDelegate;
     BTProgressHUDProvider.HideBTProgressHUD();
     _tableView.TableFooterView.Hidden = false;
 }
Esempio n. 2
0
 public void DisplayAuthWebView(string authUrl, ContinueAuthorizationDelegate continueAuthorization)
 {
     BTProgressHUDProvider.HideBTProgressHUD();
     if (authUrl != null)
     {
         _continueAthorizationDelegate = continueAuthorization;
         _webView.LoadRequest(new NSUrlRequest(new NSUrl(authUrl)));
     }
     AddSubview(_webView);
 }
Esempio n. 3
0
 public void Login()
 {
     if (!ShyBot.IsAuthorized)
     {
         BTProgressHUDProvider.ShowBTProgressHUD();
         ShyBot.Authontificate(this);
     }
     else
     {
         ToTwitts();
     }
 }
Esempio n. 4
0
        public void SetNetworkError()
        {
            BeginInvokeOnMainThread(delegate {
                BTProgressHUDProvider.HideBTProgressHUD();
                var av = new UIAlertView(Strings.NetworkProblems,
                                         Strings.NetworkProblemsMessage,
                                         null,
                                         Strings.TryAgain,
                                         null);

                av.Show();
                av.Clicked += NetworkErrorMessage_Clicked;
            });
        }
Esempio n. 5
0
        public void DisplayNewTwitts(List <Twitt> newTwittList)
        {
            _tableSource.AddNewTwittsToSource(newTwittList);
            List <NSIndexPath> tmpList = new List <NSIndexPath>();
            var rowsInSection          = _tableView.NumberOfRowsInSection(0);

            for (int i = rowsInSection; i < rowsInSection + newTwittList.Count; i++)
            {
                NSIndexPath tmpIndexPath = NSIndexPath.FromRowSection(i, 0);
                tmpList.Add(tmpIndexPath);
            }

            _tableView.InsertRows(tmpList.ToArray(), UITableViewRowAnimation.None);
            BTProgressHUDProvider.HideBTProgressHUD();
            _buttonLoadTwitts.Enabled = true;
        }
Esempio n. 6
0
 public void GetMoreTwitts()
 {
     BTProgressHUDProvider.ShowBTProgressHUD();
     ShyBot.GetMoreTwitts(_tag, this, _twittList);
 }
Esempio n. 7
0
        /* example
         * [Export("sender:event:")]
         * private void OnClick(NSObject sender, UIEvent ev)
         * {
         *      int i = 25;
         *
         * }
         *
         */

        void GetTwitts()
        {
            BTProgressHUDProvider.ShowBTProgressHUD();
            ShyBot.GetTwitts(_tag, this);
        }