public void Bind(Alert contentItem, UIAlertsTableView parent)
        {
            _parent = parent;
            lblAlertName.Text = contentItem.RuleName;
            lblCount.Text = "Total Count: " + contentItem.Count;
            lblDateTime.Text = contentItem.Dt.ToFriendlyDate ();

            btnDelete.SetImage (UIImage.FromFile ("images/icons/delete.png"), UIControlState.Normal);
            btnDelete.TouchUpInside += (object sender, EventArgs e) => {
                _parent.DeleteItem(_contentItem);
            };

            _contentItem = contentItem;
        }
 private void OnRowClicked(Alert item)
 {
     if(RowClicked!=null)
         RowClicked(this, new RowClickedEventArgs<Alert>(){ Item = item});
 }
 public int RemoveItem(Alert tweet)
 {
     var index = _items.FindIndex((t)=>{return t.Id == tweet.Id;});
     _items.RemoveAt(index);
     return index;
 }