コード例 #1
0
        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);
        }
コード例 #2
0
        private void Reports_Load(object sender, EventArgs e)
        {
            commentGrp = new CommentGroup();

            // load Comments and Targets from file and store in object array..

            int nCount = commentGrp.LoadTargets();

            for (int i = 0; i < commentGrp.GetCount(); i++)
            {
                UpdateButton(i, commentGrp.GetLabel(i));
            }

            LoadPupilsFromFile(); // also sets initial CommandTarget
            LoadPupils(5); // start with Class 5 displayed.
        }