private void Delete(Element element, Section section)
{
var e = element as Gistacular.Elements.NameTimeStringElement;
if (e == null || e.Tag == null)
return;
var gist = e.Tag as GistModel;
if (gist == null)
return;
this.DoWork(() => {
Application.Client.API.DeleteGist(gist.Id);
InvokeOnMainThread(() => {
section.Remove(element);
});
});
}