private void MoveSessionClipDown(object obj)
        {
            var index = SessionClips.IndexOf(SelectedAudioClip);

            if (index != -1)
            {
                SessionClips.Move(index, index + 1);
            }
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(SessionClips)));
        }
 private void RemoveAudioClips(object obj)
 {
     foreach (var btn in SelectedSessionClipButtons)
     {
         if (btn.DataContext != BindingOperations.DisconnectedSource)
         {
             btn.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom(ColourHelper.GetBtnInverseColour(btn.Background.ToString())));
             var sessionClip = SessionClips.Single(x => x.Label.Equals(btn.Content?.ToString()));
             SessionClips.Remove(sessionClip);
             AudioclipsView.Refresh();
         }
     }
 }
        private bool AudioClipsFilter(object item)
        {
            AudioClip audioClip = item as AudioClip;

            if (SessionClips != null && SessionClips.FirstOrDefault(x => x.Label.Equals(audioClip.Label)) != null)
            {
                return(false);
            }
            if (!IsRuleset)
            {
                return(audioClip.Category.Equals("Standard"));
            }
            else
            {
                return(!audioClip.Label.Contains("OK, rule deleted") &&
                       !audioClip.Label.Contains("List rules") &&
                       !audioClip.Label.Contains("State selected rule"));
            }
        }