protected override void OnFilePathChanged(PathChangedEventArgs e) { if (_project != null) { // update files foreach (var file in _project.GetProjectFilesInDirectory(e.SourcePath.FullPath, false)) { string hintPath = file.FilePath.GetRelativePath(e.SourcePath); file.FilePath = new FilePath(e.NewPath, hintPath); } // update sub folders foreach (var subNode in Nodes) { var directoryNode = subNode as DirectoryNode; if (directoryNode != null) { var subDirectoryNode = directoryNode; string hintPath = subDirectoryNode.FilePath.GetRelativePath(e.SourcePath); subDirectoryNode.FilePath = new FilePath(e.NewPath, hintPath); } } } base.OnFilePathChanged(e); }
internal void OnDirectoryMoved(PathChangedEventArgs e) { if (DirectoryMoved != null) { DirectoryMoved(this, e); } }
private void _project_FilePathChanged(object sender, PathChangedEventArgs e) { if (_handlePathChangedEvent) { FilePath = Project.FilePath; } }
internal void OnFileMoved(PathChangedEventArgs e) { if (FileMoved != null) { FileMoved(this, e); } }
private void PathChanged(object sender, PathChangedEventArgs e) { if (e.IsDirectory) { return; } var fullPath = Path.Combine(e.Directory, e.Path); if (this.conflictFileManager.IsPathIgnored(fullPath) || this.conflictFileManager.IsFileIgnored(fullPath)) { return; } logger.Debug("Conflict file changed: {0} FileExists: {1}", fullPath, e.PathExists); bool changed; lock (this.conflictFileRecordsLock) { if (e.PathExists) { changed = this.conflictFileOptions.Add(fullPath); } else { changed = this.conflictFileOptions.Remove(fullPath); } } if (changed) { this.RestartBackoffTimer(); } }
protected virtual void OnFilePathChanged(PathChangedEventArgs e) { if (FilePathChanged != null) { FilePathChanged(this, e); } }
private void FileEntry_FilePathChanged(object sender, PathChangedEventArgs e) { if (_handlePathEvents) { FilePath = e.NewPath; } }
protected override void OnFilePathChanged(PathChangedEventArgs e) { if (FileEntry != null) { _handlePathEvents = false; FileEntry.FilePath = e.NewPath; _handlePathEvents = true; } base.OnFilePathChanged(e); }
private void ProjectFileEntry_FilePathChanged(object sender, PathChangedEventArgs e) { var file = (sender as ProjectFileEntry); string hintPath = e.SourcePath.GetRelativePath(file.ParentProject); var item = _msBuildProject.Items.FirstOrDefault(x => x.ItemType == GetItemType(hintPath) && x.Include.Equals(hintPath, StringComparison.OrdinalIgnoreCase)); if (item != null) { item.Include = e.NewPath.GetRelativePath(file.ParentProject); } }
protected override void OnFilePathChanged(PathChangedEventArgs e) { _handlePathChangedEvent = false; if (HasProject) { Project.FilePath = FilePath; } _handlePathChangedEvent = true; base.OnFilePathChanged(e); }
protected virtual void OnFilePathChanged(PathChangedEventArgs e) { if (UpdateTextOnFilePathChanged) { Text = FilePath.FileName + FilePath.Extension; } if (FilePathChanged != null) { FilePathChanged(this, e); } }
private void ProjectFileEntry_FilePathChanged(object sender, PathChangedEventArgs e) { var file = (sender as ProjectFileEntry); string hintPath = e.SourcePath.GetRelativePath(file.ParentProject); var item = _msBuildProject.Items.FirstOrDefault(x => x.ItemType == GetItemType(hintPath) && x.Include.Equals(hintPath, StringComparison.OrdinalIgnoreCase)); if (item != null) item.Include = e.NewPath.GetRelativePath(file.ParentProject); }
// App system event handlers private void AppSystem_PathChanged(object sender, PathChangedEventArgs e) { _viewModel.ProcessPath = e.Path; }
private void AssociatedFile_FilePathChanged(object sender, PathChangedEventArgs e) { Text = e.NewPath.FileName + e.NewPath.Extension + " [Design]"; }
protected virtual void OnFilePathChanged(PathChangedEventArgs e) { if (FilePathChanged != null) FilePathChanged(this, e); }
private void fileEntry_FilePathChanged(object sender, PathChangedEventArgs e) { GiveUnsavedData(); }
private void solutionFolder_FilePathChanged(object sender, PathChangedEventArgs e) { FilePath = e.NewPath; }
protected override void OnFilePathChanged(PathChangedEventArgs e) { _handlePathChangedEvent = false; if (HasProject) Project.FilePath = FilePath; _handlePathChangedEvent = true; base.OnFilePathChanged(e); }
private void _project_FilePathChanged(object sender, PathChangedEventArgs e) { if (_handlePathChangedEvent) FilePath = Project.FilePath; }
private void PathChanged(object sender, PathChangedEventArgs e) { if (e.IsDirectory) return; var fullPath = Path.Combine(e.Directory, e.Path); if (this.conflictFileManager.IsPathIgnored(fullPath) || this.conflictFileManager.IsFileIgnored(fullPath)) return; logger.Debug("Conflict file changed: {0} FileExists: {1}", fullPath, e.PathExists); bool changed; lock (this.conflictFileRecordsLock) { if (e.PathExists) changed = this.conflictFileOptions.Add(fullPath); else changed = this.conflictFileOptions.Remove(fullPath); } if (changed) this.RestartBackoffTimer(); }