Esempio n. 1
0
        public static BugTicket createTicketFromFile(string line)
        {
            BugTicket bugTicket = new BugTicket();

            string[] fieldsArr = line.Split(',');

            bugTicket.ticketId  = Int32.Parse(fieldsArr[0]);
            bugTicket.summary   = fieldsArr[1];
            bugTicket.status    = fieldsArr[2];
            bugTicket.priority  = fieldsArr[3];
            bugTicket.submitter = fieldsArr[4];
            bugTicket.assigned  = fieldsArr[5];
            bugTicket.watchers  = Ticket.createWatchersFromString(fieldsArr[6]);
            bugTicket.severity  = fieldsArr[7];
            return(bugTicket);
        }
Esempio n. 2
0
        public static TaskTicket createTicketFromFile(string line)
        {
            TaskTicket taskTicket = new TaskTicket();

            string[] fieldsArr = line.Split(',');

            taskTicket.ticketId    = Int32.Parse(fieldsArr[0]);
            taskTicket.summary     = fieldsArr[1];
            taskTicket.status      = fieldsArr[2];
            taskTicket.priority    = fieldsArr[3];
            taskTicket.submitter   = fieldsArr[4];
            taskTicket.assigned    = fieldsArr[5];
            taskTicket.watchers    = Ticket.createWatchersFromString(fieldsArr[6]);
            taskTicket.projectName = fieldsArr[7];
            taskTicket.dueDate     = DateTime.Parse(fieldsArr[8]);
            return(taskTicket);
        }
        public static EnhancementTicket createTicketFromFile(string line)
        {
            EnhancementTicket enhancementTicket = new EnhancementTicket();

            string[] fieldsArr = line.Split(',');

            enhancementTicket.ticketId  = Int32.Parse(fieldsArr[0]);
            enhancementTicket.summary   = fieldsArr[1];
            enhancementTicket.status    = fieldsArr[2];
            enhancementTicket.priority  = fieldsArr[3];
            enhancementTicket.submitter = fieldsArr[4];
            enhancementTicket.assigned  = fieldsArr[5];
            enhancementTicket.watchers  = Ticket.createWatchersFromString(fieldsArr[6]);
            enhancementTicket.software  = fieldsArr[7];
            enhancementTicket.cost      = Double.Parse(fieldsArr[8]);
            enhancementTicket.reason    = fieldsArr[9];
            return(enhancementTicket);
        }