public CommentGroup( Comment[] arrCs, int nC) { arrComments = new Comment[10]; nCount = nC; for( int i =0; i < nCount; i++) { arrComments[i] = arrCs[i]; } }
public int LoadTargets() { FileReader r = new FileReader("ReportCommentsAndTargets.csv"); string[,] strFields = r.LoadFile(ref nCount); if( nCount == -1) { return -1; } for (int i = 0; i < nCount; i++) { Comment c = new Comment(strFields[i,0], strFields[i,1], strFields[i,2], strFields[i,3]); // add to the list.. arrComments[i] = c; } return nCount; }
public void SetCommentGroup( CommentGroup c) { Comment[] arrCommentSource = c.GetComments(); int nCount = c.GetCount(); Comment[] arrCommentDest = new Comment[nCount]; for( int i=0; i< nCount; i++) { arrCommentDest[i] = new Comment(arrCommentSource[i].GetLabel(), arrCommentSource[i].GetPhrase1(), arrCommentSource[i].GetPhrase2(), arrCommentSource[i].GetPhrase3()); } CommentGrp = new CommentGroup( arrCommentDest,nCount); }