Beispiel #1
0
        private void OnProjectResourcesRenamed(object sender, ProjectTreeRenamedEventArgs e)
        {
            m_projectTree.UpdateProjectItem(e.ProjectItem);

            Editor.IsBusy = true;
            m_project.Rename(e.ProjectItem, e.OldName);
        }
 private void OnProjectTreeItemRenamed(object sender, ProjectTreeRenamedEventArgs e)
 {
     if (e.ProjectItem != null)
     {
         ProjectItem projectItem = e.ProjectItem;
         string      name        = projectItem.Name;
         projectItem.Name = e.OldName;
         ShowProgress     = true;
         m_projectManager.Rename(projectItem, name, () =>
         {
             m_projectResources.UpdateProjectItem(projectItem);
             ShowProgress = false;
         });
     }
 }
Beispiel #3
0
 private void OnProjectTreeItemRenamed(object sender, ProjectTreeRenamedEventArgs e)
 {
     Editor.IsBusy = true;
     m_project.Rename(e.ProjectItem, e.OldName);
 }