コード例 #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;
 }