public void RemoveGroup(ControlPointGroup group) { group.ItemAdded -= groupItemAdded; group.ItemRemoved -= groupItemRemoved; groups.Remove(group); }
public void RemoveGroup(ControlPointGroup group) { foreach (var item in group.ControlPoints.ToArray()) { group.Remove(item); } group.ItemAdded -= groupItemAdded; group.ItemRemoved -= groupItemRemoved; groups.Remove(group); }
public ControlPointGroup GroupAt(double time, bool addIfNotExisting = false) { var newGroup = new ControlPointGroup(time); int i = groups.BinarySearch(newGroup); if (i >= 0) { return(groups[i]); } if (addIfNotExisting) { newGroup.ItemAdded += groupItemAdded; newGroup.ItemRemoved += groupItemRemoved; groups.Insert(~i, newGroup); return(newGroup); } return(null); }
public void AttachGroup(ControlPointGroup pointGroup) => Time = pointGroup.Time;
public void AttachGroup(ControlPointGroup pointGroup) => controlPointGroup = pointGroup;