private string BuildSteps(string sCodeblockName) { string sHTML = ""; if (oTask.Codeblocks[sCodeblockName].Steps.Count > 0) { foreach (Step oStep in oTask.Codeblocks[sCodeblockName].Steps.Values) { sHTML += ft.DrawReadOnlyStep(oStep, bShowNotes); } } else { sHTML = "<li class=\"no_step\">No Commands defined for this Codeblock.</li>"; } return(sHTML); }