//Open Video from Other private void OnVideoItemClick(object sender, VideoAdapterClickEventArgs args) { try { if (args.Position <= -1) { return; } var item = MAdapter.GetItem(args.Position); if (item.VideoData == null) { return; } GlobalContext.StartPlayVideo(item.VideoData); } catch (Exception exception) { Console.WriteLine(exception); } }
//Open Video from Top private void TopVideosAdapterOnItemClick(object sender, VideoAdapterClickEventArgs e) { try { if (e.Position <= -1) { return; } var item = TopVideosAdapter.GetItem(e.Position); if (item == null) { return; } GlobalContext.StartPlayVideo(item); } catch (Exception exception) { Console.WriteLine(exception); } }
void OtherVideosOnLongClick(VideoAdapterClickEventArgs args) => OtherVideosItemLongClick?.Invoke(this, args);