public static List<ListViewItem> ToList(CimParameterList list) { List<ListViewItem> newList = new List<ListViewItem>(); foreach (CimParameter parametet in list) { ListViewItem item = new ListViewItem(new string[] { parametet.Name.ToString(), "Parameter" }, (int)ImageUtils.ImageIndex.Parameter); newList.Add(item); } return newList; }
public static TreeNode CimToNode(CimParameterList list) { TreeNode root = new TreeNode("Parameters"); foreach (CimParameter param in list) { root.Nodes.Add(CimToNode(param)); } return root; }
public void WriteCimParameterList(CimParameterList list) { for(int i = 0; i < list.Count; ++i) { WriteCimParameter(list[i]); } }