getSelectTasks() public method

获取选中的任务列表
public getSelectTasks ( ) : List
return List
Example #1
0
        /// <summary>
        /// 生成注释
        /// </summary>
        /// <returns></returns>
        private string genCommitMessage()
        {
            List <BugInfo>  bugs  = issForm.getSelecteBugs();
            List <TaskInfo> tasks = issForm.getSelectTasks();

            StringBuilder sb = new StringBuilder();

            foreach (BugInfo bug in bugs)
            {
                if (bug.isDone)
                {
                    sb.Append("Fix ");
                }
                sb.Append("Bug#" + bug.id + " " + bug.title).Append("\r\n");
            }


            foreach (TaskInfo task in tasks)
            {
                if (task.isDone)
                {
                    sb.Append("Finish ");
                }
                sb.Append("Task#" + task.id + " " + task.name + ", cost:" + task.consumed + " left:" + task.left).Append("\r\n");
            }

            return(sb.ToString());
        }