void TriggerRefresh(bool showStatus)
{
if (refreshRequested == null)
{
return;
}
if (reloading)
{
return;
}
reloading = true;
if (refreshView != null)
{
refreshView.SetActivity(true);
}
refreshRequested(this, EventArgs.Empty);
if (reloading && showStatus && refreshView != null)
{
UIView.BeginAnimations("reloadingData");
UIView.SetAnimationDuration(0.2);
TableView.ContentInset = new UIEdgeInsets(60, 0, 0, 0);
UIView.CommitAnimations();
}
}