Пример #1
0
 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);
     }
 }
Пример #2
0
        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));
            }
        }