Exemplo n.º 1
0
        public TrackerEntry(string submitter, string subject, string message)
        {
            m_Submitter = submitter;
            m_Subject   = subject;
            m_Message   = message;

            m_IssueID         = TrackerPersistance.NewIssue;
            m_CreationTime    = DateTime.Now;
            m_LastUpdatedTime = m_CreationTime;

            m_AssignUser = TrackerSystem.FindUser(0);
            m_Status     = TrackerStatus.New;
            m_Priority   = TrackerPriority.None;

            m_Comments = new List <CommentEntry>();

            TrackerPersistance.AddIssue(this);
        }
Exemplo n.º 2
0
        public TrackerEntry(GenericReader reader)
        {
            m_Comments = new List <CommentEntry>();

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_IssueID         = reader.ReadInt();
                m_Submitter       = reader.ReadString();
                m_CreationTime    = reader.ReadDateTime();
                m_LastUpdatedTime = reader.ReadDateTime();

                m_AssignUser = TrackerSystem.FindUser(reader.ReadInt());

                m_Message = reader.ReadString();
                m_Subject = reader.ReadString();

                int count = reader.ReadInt();

                for (int i = 0; i < count; i++)
                {
                    CommentEntry e = new CommentEntry(this, reader);

                    if (m_Comments == null)
                    {
                        m_Comments = new List <CommentEntry>();
                    }

                    m_Comments.Add(e);
                }

                m_Status   = TrackerStatus.Find(reader.ReadInt());
                m_Priority = TrackerPriority.Find(reader.ReadInt());
                break;
            }
            }

            TrackerPersistance.AddIssue(this);
        }
Exemplo n.º 3
0
 public void Assign(ITrackerUser user)
 {
     m_AssignUser      = user;
     m_LastUpdatedTime = DateTime.Now;
 }
Exemplo n.º 4
0
 public int CompareTo(ITrackerUser other)
 {
     return(m_Id.CompareTo(other.Id));
 }