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; }
public void DisplayAuthWebView(string authUrl, ContinueAuthorizationDelegate continueAuthorization) { BTProgressHUDProvider.HideBTProgressHUD(); if (authUrl != null) { _continueAthorizationDelegate = continueAuthorization; _webView.LoadRequest(new NSUrlRequest(new NSUrl(authUrl))); } AddSubview(_webView); }
public void Login() { if (!ShyBot.IsAuthorized) { BTProgressHUDProvider.ShowBTProgressHUD(); ShyBot.Authontificate(this); } else { ToTwitts(); } }
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; }); }
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; }
public void GetMoreTwitts() { BTProgressHUDProvider.ShowBTProgressHUD(); ShyBot.GetMoreTwitts(_tag, this, _twittList); }
/* example * [Export("sender:event:")] * private void OnClick(NSObject sender, UIEvent ev) * { * int i = 25; * * } * */ void GetTwitts() { BTProgressHUDProvider.ShowBTProgressHUD(); ShyBot.GetTwitts(_tag, this); }