private void dgvComment_CellValuePushed(object sender, DataGridViewCellValueEventArgs e) { var selectedColumnIndex = e.ColumnIndex; var selectedRowIndex = e.RowIndex; if (selectedColumnIndex < 0 || selectedRowIndex < 0) { return; } if (selectedColumnIndex == 0 && e.Value != null && !string.IsNullOrWhiteSpace(e.Value.ToString())) // Comment Entered { var newComment = new GroupNote() { Comment = e.Value.ToString().Trim() }; CurrentGroup.GroupNotes.Add(newComment); SkuGroupDataList.Insert(0, newComment); AryaTools.Instance.SaveChangesIfNecessary(true, true); dgvComment.Invalidate(); } }
public Info() { Notes = new GroupNote(); }