Пример #1
0
        private void GetValues(string key)
        {
            string allValues = hostInstance.GetValues(key, registry);

            string[] files = allValues.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
            foreach (string file in files)
            {
                if (file != string.Empty)
                {
                    string[]     temp = file.Split(new string[] { "|*|" }, StringSplitOptions.None);
                    ListViewItem item = new ListViewItem(temp[0]);
                    item.SubItems.Add(temp[1]);
                    listView1.Items.Add(item);
                }
            }
        }