Exemple #1
0
        public CommentEntry(TrackerEntry issue, string submitter, string comment)
        {
            m_Issue = issue;

            m_Submitter = submitter;
            m_Created   = DateTime.UtcNow;
            m_Comment   = comment;
            m_CommentID = TrackerPersistance.NewComment;

            TrackerPersistance.AddComment(this);
        }
Exemple #2
0
        public CommentEntry(TrackerEntry issue, GenericReader reader)
        {
            m_Issue = issue;

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_CommentID = reader.ReadInt();
                m_Submitter = reader.ReadString();
                m_Created   = reader.ReadDateTime();
                m_Comment   = reader.ReadString();
                break;
            }
            }

            TrackerPersistance.AddComment(this);
        }