示例#1
0
        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;
        }
示例#2
0
        public static TreeNode CimToNode(CimParameterList list)
        {
            TreeNode root = new TreeNode("Parameters");
            foreach (CimParameter param in list)
            {
                root.Nodes.Add(CimToNode(param));

            }
            return root;
        }
示例#3
0
 public void WriteCimParameterList(CimParameterList list)
 {
     for(int i = 0; i < list.Count; ++i)
     {
         WriteCimParameter(list[i]);
     }
 }