public void DeleteMusicSegment(MusicSegmentViewModel segmentVM)
        {
            MusicSegment segment = segmentVM.GetModel();

            if (segment.GetIndex() == 0)
            {
                return;
            }

            foreach (var b in model.Blocks)
            {
                if (b.SegmentContext == segment)
                {
                    b.SegmentContext = model.MusicSegments[0];
                }
            }

            if (model.DefaultMusicSegment == segment)
            {
                model.DefaultMusicSegment = model.MusicSegments[0];
            }
            if (ActiveMusicSegment == segmentVM)
            {
                ActiveMusicSegment = MusicSegments[model.DefaultMusicSegment.GetIndex()];
            }

            model.MusicSegments.Remove(segment);
        }
 public void SetMusicSegmentAsDefault(MusicSegmentViewModel segmentVM)
 {
     model.DefaultMusicSegment = segmentVM.GetModel();
 }