private void MAdapterOnDeleteItemClick(object sender, AttachmentsAdapterClickEventArgs e) { try { var position = e.Position; switch (position) { case >= 0: { var item = MAdapter.GetItem(position); if (item != null) { DeletedImagesIds += item.Id + ","; MAdapter.Remove(item); } break; } } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }
private void MAdapterOnDeleteItemClick(object sender, AttachmentsAdapterClickEventArgs e) { try { var position = e.Position; if (position >= 0) { var item = MAdapter.GetItem(position); if (item != null) { MAdapter.Remove(item); } } } catch (Exception exception) { Console.WriteLine(exception); } }
private void MAdapterOnDeleteItemClick(object sender, AttachmentsAdapterClickEventArgs e) { try { var position = e.Position; if (position >= 0) { var item = MAdapter.GetItem(position); if (item != null) { MAdapter.Remove(item); } } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }