private void HashTagUserAdapterOnItemClick(object sender, HashtagUserAdapterClickEventArgs adapterClickEvents) { try { var position = adapterClickEvents.Position; switch (position) { case >= 0: { var item = HashTagUserAdapter.GetItem(position); if (item != null) { string id = item.Hash.Replace("#", "").Replace("_", " "); string tag = item?.Tag?.Replace("#", ""); var intent = new Intent(this, typeof(HashTagPostsActivity)); intent.PutExtra("Id", id); intent.PutExtra("Tag", tag); StartActivity(intent); } break; } } } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void HashTagUserAdapterOnItemClick(object sender, HashtagUserAdapterClickEventArgs adapterClickEvents) { try { var position = adapterClickEvents.Position; if (position >= 0) { var item = TabbedMainActivity.GetInstance()?.HashTagUserAdapter.GetItem(position); if (item != null) { string id = item.Hash.Replace("#", "").Replace("_", " "); string tag = item.Tag.Replace("#", ""); var intent = new Intent(this, typeof(HashTagPostsActivity)); intent.PutExtra("Id", id); intent.PutExtra("Tag", tag); StartActivity(intent); } } } catch (Exception e) { Console.WriteLine(e); } }