示例#1
0
        public static string Render(Tasks tasks, TaskSetting setting, out string selectedItemIds)
        {
            var    render = new TaskRender(tasks, setting);
            string result = "";

            for (int i = 1; i <= render.Setting.Round; i++)
            {
                result = render.Render(i);
            }
            selectedItemIds = render.selectedIds.ArrayToCommaText();
            return(result);
        }
示例#2
0
        public static string RenderMulti(Tasks tasks, TaskSetting setting, int roundTo, out string selectedItemIds)
        {
            var           render = new TaskRender(tasks, setting);
            StringBuilder result = new StringBuilder();

            if (roundTo >= render.Setting.Round)
            {
                for (int i = 1; i <= roundTo; i++)
                {
                    if (i >= render.Setting.Round)
                    {
                        result.AppendLine(render.Render(i));
                    }
                    else
                    {
                        render.Render(i);
                    }
                }
            }
            selectedItemIds = render.selectedIds.ArrayToCommaText();
            return(result.ToString());
        }