Пример #1
0
        public void InitView(RepoStorage store, IList <string> files, IList <object> fields)
        {
            listItemMap = new Dictionary <string, P4ObjectTreeListViewItem>();

            IList <FileSpec> fs = FileSpec.LocalSpecList(files.ToArray());

            Files  = store.GetFileMetaData(fs.ToArray());
            Fields = fields;

            foreach (FileMetaData file in Files)
            {
                P4FileTreeListViewItem it = new P4FileTreeListViewItem(null, file, (IList <object>)Fields);
                listItemMap.Add(file.DepotPath.Path, it);
                this.Items.Add(it);
            }
        }