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 (); }
internal void NotifyFileRenamedInProject(ProjectFileRenamedEventArgs args) { isDirty = true; OnFileRenamedInProject (args); }
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); }