コード例 #1
0
        public void RemoveGroup(ControlPointGroup group)
        {
            group.ItemAdded   -= groupItemAdded;
            group.ItemRemoved -= groupItemRemoved;

            groups.Remove(group);
        }
コード例 #2
0
        public void RemoveGroup(ControlPointGroup group)
        {
            foreach (var item in group.ControlPoints.ToArray())
            {
                group.Remove(item);
            }

            group.ItemAdded   -= groupItemAdded;
            group.ItemRemoved -= groupItemRemoved;

            groups.Remove(group);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: ControlPoint.cs プロジェクト: Azyyyyyy/osu
 public void AttachGroup(ControlPointGroup pointGroup) => Time = pointGroup.Time;
コード例 #5
0
 public void AttachGroup(ControlPointGroup pointGroup) => controlPointGroup = pointGroup;