private void ActionCommentViewCell_BindingContextChanged(object sender, EventArgs e) { try { var objsender = (SRiActionComment)BindingContext; if (objsender != null) { _currentContext = objsender; } } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }
public async void OnCommentDeleted(SRiActionComment sRiActionComment) { try { if (await LockScreen.ToDisplayAlert(this, "Delete", "Do you want to delete this item?", "Yes", "No")) { int index = AppData.PropertyModel.SelectedAction.Action.Comments.IndexOf(sRiActionComment); AppData.PropertyModel.SelectedAction.Action.Comments.RemoveAt(index); RefreshCommentList(); AppData.PropertyModel.SelectedAction.Action.Modified = true; } } catch (Exception ex) { LogTracking.LogTrace(ex.ToString()); } }