コード例 #1
0
 internal override object Execute(WorkspaceModel workspaceModel, bool events = true)
 {
     if (OldName.Equals(NewName))
     {
         return(false);
     }
     Model.Name = NewName;
     workspaceModel.OnRenamedChildElement(Model, OldName, NewName);
     return(true);
 }
コード例 #2
0
 internal override void Undo(WorkspaceModel workspaceModel)
 {
     Model.Name = OldName;
     workspaceModel.OnRenamedChildElement(Model, NewName, OldName);
 }