예제 #1
0
파일: FrmSkuGroups.cs 프로젝트: ewin66/Arya
        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();
            }
        }
예제 #2
0
 public Info()
 {
     Notes = new GroupNote();
 }