コード例 #1
0
            private FileNode(FileNode parent, string text)
            {
                this.treeNode_      = parent.treeNode_.Add(text);
                this.treeNode_.Data = this;

                this.filterNode_ = parent.filterNode_.AddChild(this);

                this.InitDirectory_();
            }
コード例 #2
0
            public FileNode(FileTreeView <TFile, TFiles> treeView)
            {
                this.treeNode_      = treeView.betterTreeView_.Root;
                this.treeNode_.Data = this;

                this.filterNode_ = treeView.filterImpl_.Root.AddChild(this);

                this.InitDirectory_();
            }
コード例 #3
0
            private FileNode(FileNode parent, TFile file)
            {
                this.File = file;

                this.treeNode_ =
                    parent.treeNode_.Add(file.BetterFileName ?? file.FileName);
                this.treeNode_.Data = this;

                this.filterNode_ = parent.filterNode_.AddChild(this);

                this.InitFile_();
            }
コード例 #4
0
 public int Compare(
     IBetterTreeNode <FileNode> lhs,
     IBetterTreeNode <FileNode> rhs)
 => - Asserts.Assert(lhs.Data)
 .MatchPercentage.CompareTo(
     Asserts.Assert(rhs.Data).MatchPercentage);