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); }
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()); }