public frmExclusions(SlynchyProject project, Comparison comparison, SlynchyDirectoryTree currentTree) { // // Required for Windows Form Designer support // InitializeComponent(); Project = project; CurrentComparison = comparison; CurrentTree = currentTree; CurrentTree.ScanTree(); labProjectName.Text = Project.Name; labComparisonName.Text = CurrentComparison.Name; labTreeName.Text = CurrentTree.Name; CurrentTree.CopyToTreeControl(tvDirs, false); LoadDirExclusions(CurrentTree.Spec.PathNameExcludes, CurrentTree.Spec.PathRelativeExcludes); LoadFileType(CurrentTree.Spec.IncludedFileExtensions); LoadFileExclusions(CurrentTree.Spec.FileNameExcludes, CurrentTree.Spec.FilePathExcludes); LoadDirFileExclusions(CurrentTree.Spec.DirFileExcludes); }
private void LoadTree() { this.Cursor = Cursors.WaitCursor; tvTree.Nodes.Clear(); Application.DoEvents(); var CurrentTreeName = cboSelectTree.Text; CurrentDirectoryTree = CurrentComparison.FindTree(CurrentTreeName); CurrentDirectoryTree.CopyToTreeControl(tvTree, false); this.Cursor = Cursors.Arrow; Application.DoEvents(); }
private void cboSelectRightTree_SelectedIndexChanged(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; tvRightTree.Nodes.Clear(); Application.DoEvents(); var CurrentRightTreeName = cboSelectRightTree.Text; CurrentRightDirectoryTree = CurrentComparison.FindTree(CurrentRightTreeName); CurrentRightDirectoryTree.CopyToTreeControl(tvRightTree, labRightDir, labRightDirCount, labRightDirCount, false); this.Cursor = Cursors.Arrow; Application.DoEvents(); }
private void RefreshTree() { CurrentTree.ReScanExclusions(); tvDirs.Nodes.Clear(); CurrentTree.CopyToTreeControl(tvDirs, false); }