//#################################################################################### private void ViewAttachment(Button btn, ProgressBar prg, EntryAttachment item) { btn.Tag = "BLOCKED"; prg.Visibility = ViewStates.Visible; TBL.SP_Object.GetNewsFeedAttachment(item, delegate(Adapters.AttachmentRetrieveErrorReason reason) { if (reason != AttachmentRetrieveErrorReason.RELOGIN_REQUIRED) { prg.Visibility = ViewStates.Gone; btn.Tag = null; } AttachmentRetrieveError?.Invoke(this, new AttachmentRetrieveErrorEventArgs(reason)); }, delegate(string path) { prg.Visibility = ViewStates.Gone; btn.Tag = null; btn.BackgroundTintList = Android.Content.Res.ColorStateList.ValueOf(Android.Graphics.Color.Rgb(180, 180, 180)); EntrySelected?.Invoke(this, new ListFeedAttachmentAdapterEntrySelected(_entry.Key, item.Key)); }); }
private void SelectPath() { EntrySelected?.Invoke(path); }