private string renderLine(DasMenuItem Item, DasMenuConfig Config, DasMenuItem Selected) { string content = Config.getFormat(); string indent = getIndent(Item, Config); content = content.Replace(DasMenuConfig.FORMAT_INDENT, indent); if (indent.Length > 0) { content = content.Replace(DasMenuConfig.FORMAT_INDENTSPACE, " "); } else { content = content.Replace(DasMenuConfig.FORMAT_INDENTSPACE, ""); } if (Item.Equals(Selected)) { content = content.Replace(DasMenuConfig.FORMAT_SELECTED, Config.getSelector()); } else { content = content.Replace(DasMenuConfig.FORMAT_SELECTED, ""); } content = content.Replace(DasMenuConfig.FORMAT_LABEL, Item.getLabel()); return(content); }