示例#1
0
 private void _project_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     if (_handlePathChangedEvent)
     {
         FilePath = Project.FilePath;
     }
 }
示例#2
0
 protected virtual void OnFilePathChanged(PathChangedEventArgs e)
 {
     if (FilePathChanged != null)
     {
         FilePathChanged(this, e);
     }
 }
示例#3
0
        protected virtual void OnFilePathChanged(PathChangedEventArgs e)
        {
            if (UpdateTextOnFilePathChanged)
                Text = FilePath.FileName + FilePath.Extension;

            if (FilePathChanged != null)
                FilePathChanged(this, e);
        }
示例#4
0
        protected override void OnFilePathChanged(PathChangedEventArgs e)
        {
            _handlePathChangedEvent = false;
            if (HasProject)
            {
                Project.FilePath = FilePath;
            }
            _handlePathChangedEvent = true;

            base.OnFilePathChanged(e);
        }
 private void AssociatedFile_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     Text = e.NewPath.FileName + e.NewPath.Extension;
 }
示例#6
0
 protected virtual void OnFilePathChanged(PathChangedEventArgs e)
 {
     if (FilePathChanged != null)
         FilePathChanged(this, e);
 }
 private void solutionFolder_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     FilePath = e.NewPath;
 }
示例#8
0
 private void fileEntry_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     GiveUnsavedData();
 }
 internal void OnDirectoryMoved(PathChangedEventArgs e)
 {
     if (DirectoryMoved != null)
         DirectoryMoved(this, e);
 }
 internal void OnFileMoved(PathChangedEventArgs e)
 {
     if (FileMoved != null)
         FileMoved(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);
        }
示例#13
0
        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)
                {
                    if (subNode is DirectoryNode)
                    {
                        var subDirectoryNode = (subNode as DirectoryNode);
                        string hintPath = subDirectoryNode.FilePath.GetRelativePath(e.SourcePath);
                        subDirectoryNode.FilePath = new FilePath(e.NewPath, hintPath);
                    }
                }
            }

            base.OnFilePathChanged(e);
        }
示例#14
0
 private void _project_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     if (_handlePathChangedEvent)
         FilePath = Project.FilePath;
 }
示例#15
0
        protected override void OnFilePathChanged(PathChangedEventArgs e)
        {
            _handlePathChangedEvent = false;
            if (HasProject)
                Project.FilePath = FilePath;
            _handlePathChangedEvent = true;

            base.OnFilePathChanged(e);
        }
示例#16
0
 private void fileEntry_FilePathChanged(object sender, PathChangedEventArgs e)
 {
     GiveUnsavedData();
 }