private void BuildTree() { if (treeChanges == null) { treeChanges = new ChangesTree(); treeChanges.Title = "Changes"; treeChanges.DisplayRootNode = false; treeChanges.IsCheckable = true; treeChanges.PathSeparator = Environment.FileSystem.DirectorySeparatorChar.ToString(); TreeOnEnable(); } treeChanges.Load(gitStatusEntries.Select(entry => new GitStatusEntryTreeData(entry))); Redraw(); }