public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); BlockedTableView.BackgroundColor = UIColor.Clear; GetBlockedUserList(); BlockedTableView.ReloadData(); }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (BlockedTableView != null) { BlockedTableView.Dispose(); BlockedTableView = null; } if (BlockedUserName != null) { BlockedUserName.Dispose(); BlockedUserName = null; } if (HeaderView != null) { HeaderView.Dispose(); HeaderView = null; } }
void GetBlockedUserList() { BlockedTableView.Source = null; BlockedTableView.ReloadData(); WebService webservice = new WebService(); var donus = webservice.OkuGetir("blocked-user/block-list"); if (donus != null) { blockedList = Newtonsoft.Json.JsonConvert.DeserializeObject <List <BlockedUserDataModel> >(donus.ToString()); if (blockedList.Count > 0) { InvokeOnMainThread(() => { BlockedTableView.Source = new BlockedCustomTableCellSource(blockedList, this); BlockedTableView.ReloadData(); BlockedTableView.BackgroundColor = UIColor.Clear; BlockedTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; CustomLoading.Hide(); }); } } }