/// <summary>
 /// Command callback.
 /// Called to react to a new SRS Level selection.
 /// </summary>
 /// <param name="selectedLevel">Newly selected SRS level.</param>
 private void OnSelectSrsLevel(SrsLevel selectedLevel)
 {
     SelectLevel(selectedLevel);
 }
 public SrsLevelSelectedEventArgs(SrsLevel selectedLevel)
 {
     SelectedLevel = selectedLevel;
 }
        /// <summary>
        /// Sets the given level as the current selection.
        /// </summary>
        /// <param name="level">Level to set as the current selection.</param>
        public void SelectLevel(SrsLevel level)
        {
            if (level != null)
            {
                CurrentLevelValue = level.Value;
            }

            if (SrsLevelSelected != null)
            {
                SrsLevelSelected(this, new SrsLevelSelectedEventArgs(level));
            }
        }
 public SrsLevelSelectedEventArgs(SrsLevel selectedLevel)
 {
     SelectedLevel = selectedLevel;
 }