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); }
internal override void Undo(WorkspaceModel workspaceModel) { Model.Name = OldName; workspaceModel.OnRenamedChildElement(Model, NewName, OldName); }