Example #1
0
            public override async void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath indexPath)
            {
                var r = _checkins;

                var ci = r.ElementAt(indexPath.Row);

                if (editingStyle == UITableViewCellEditingStyle.Delete)
                {
                    // clear existing - bit of a hack to prevent deleted
                    // object from complaining later
                    //

                    if (ci.Checkin.Tag != null)
                    {
                        await Buddy.DeleteAsync <bool>("/pictures/" + ci.Checkin.Tag);
                    }

                    // delete the checkin
                    await Buddy.DeleteAsync <bool> ("/checkins/" + ci.Checkin.ID);

                    this.Clear();
                    this._parent.UpdateData();
                }
            }