public void RenameMarker(string oldname, string newname) { if (!privatemarkers.Contains(oldname)) { storage.Rename(oldname, newname); } else { var prop = markers[oldname]; markers.Add(newname, prop); markers.Remove(oldname); } }
private void Field_ItemMoved( Duration oldduration, Duration newduration, T value ) { var oldrelation = CodeTools.WriteDuration(oldduration); events.Remove(oldduration); events.Add(newduration); if (obj.HasChild(oldrelation)) { obj.Rename(oldrelation, CodeTools.WriteDuration(newduration)); } }