private FileNode(FileNode parent, string text) { this.treeNode_ = parent.treeNode_.Add(text); this.treeNode_.Data = this; this.filterNode_ = parent.filterNode_.AddChild(this); this.InitDirectory_(); }
public FileNode(FileTreeView <TFile, TFiles> treeView) { this.treeNode_ = treeView.betterTreeView_.Root; this.treeNode_.Data = this; this.filterNode_ = treeView.filterImpl_.Root.AddChild(this); this.InitDirectory_(); }
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_(); }
public int Compare( IBetterTreeNode <FileNode> lhs, IBetterTreeNode <FileNode> rhs) => - Asserts.Assert(lhs.Data) .MatchPercentage.CompareTo( Asserts.Assert(rhs.Data).MatchPercentage);