void OnFileRenamed(object sender, ProjectFileRenamedEventArgs args)
 {
     if (args.ProjectFile.BuildAction == BuildAction.Compile) {
         RemoveFile (args.OldName);
         AddFile (args.NewName);
     }
 }
 protected virtual void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
 {
     if (FileRenamedInProject != null) {
         FileRenamedInProject (this, e);
     }
 }
 internal void NotifyFileRenamedInProject(object sender, ProjectFileRenamedEventArgs e)
 {
     OnFileRenamedInProject (e);
 }
 void OnRenameFile(object sender, ProjectFileRenamedEventArgs e)
 {
     ITreeBuilder tb = Context.GetTreeBuilder (e.ProjectFile);
     if (tb != null) tb.Update ();
 }
Ejemplo n.º 5
0
 internal void NotifyFileRenamedInProject(ProjectFileRenamedEventArgs args)
 {
     isDirty = true;
     OnFileRenamedInProject (args);
 }
Ejemplo n.º 6
0
        protected override void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
        {
            base.OnFileRenamedInProject (e);

            if (loading) return;
            if (e.ProjectFile.BuildAction != BuildAction.Compile)
                return;

            if (RemoveSourceFile (e.OldName))
                AddSourceFile (e.NewName);
        }