Пример #1
0
        public P4FileTreeListViewItem(TreeListViewItem parentItem, FileMetaData fileData, IList <object> fields)
            : base()
        {
            ParentItem = parentItem;
            Fields     = fields;
            FileData   = fileData;

            Tag = fileData;

            //FileName = fileData.LocalPath.GetFileName();
            //FileFolder = fileData.LocalPath.GetFileName();
        }
Пример #2
0
        public P4FileTreeListViewItem(TreeListViewItem parentItem, string path, FileMetaData fileData)
            : base()
        {
            _fileData  = null; //fileData;
            ParentItem = parentItem;
            Fields     = null;
            Tag        = fileData;

            ImageIndex = (int)CenterImages.Portrait;
            AddSubitem(path, 0);

            this.FullLine = true;
        }
Пример #3
0
        public TreeListViewItem(TreeListViewItem parentItem, params string[] items)
            : base(items)
        {
            ParentItem = parentItem;

            Tagged   = false;
            FullLine = false;
            //Displayed = false;

            this.treeStateImageIndex = 0;
            ChildNodes = new List <TreeListViewItem>();

            LeftImageIndices   = new List <int>();
            RightImageIndices  = new List <int>();
            CenterImageIndices = new List <int>();
        }
Пример #4
0
        //public string FileName { get; set; }
        //public string FileFolder { get; set; }

        public P4FileTreeListViewItem(TreeListViewItem parentItem, FileMetaData fileData, params object[] fields)
            : this(parentItem, fileData, fields.ToList <object>())
        {
        }
Пример #5
0
 public P4ObjectTreeListViewItem(TreeListViewItem parentItem, string itemText, bool fullLine)
     : base(parentItem, itemText, fullLine)
 {
     NodeType = nodeType.None;
 }