修改代码如下:

if (!string.IsNullOrEmpty(table[nonterm][term])) { item.SubItems.Add(table[nonterm][term] + " ->"); } else { item.SubItems.Add(""); }

这样就可以在不为空的元素前面加上 "->" 了。


原文地址: http://www.cveoy.top/t/topic/gK8l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录