Ejemplo n.º 1
0
 public bool AddToList(ListView lstview)
 {
     QcCheckResult.RemoveError(lstview, this.CheckObject, this);
     foreach (var v in this)
     {
         string name = (this.CheckObject as IQcNode).Name;
         if (string.IsNullOrEmpty(name))
         {
             name = "新建项";
         }
         ListViewItem item = lstview.Items.Insert(0, name);
         item.SubItems.Add(v.Key);
         item.SubItems.Add(v.Value);
         item.Tag         = this.CheckObject;
         item.ToolTipText = v.Value;
     }
     return(true);
 }