/// <summary> /// Adds a speaker profile to the speakers list /// </summary> /// <param name="speaker">The speaker profile to add</param> public void AddSpeaker(IdentificationProfile speaker) { _speakersListView.Items.Add(speaker); }
/// <summary> /// Gets the selected profiles from the speakers list /// </summary> /// <returns>An array of the selected identification profiles</returns> public IdentificationProfile[] GetSelectedProfiles() { if (_speakersListView.SelectedItems.Count == 0) throw new Exception("No Speakers Selected."); IdentificationProfile[] result = new IdentificationProfile[_speakersListView.SelectedItems.Count]; for (int i = 0; i < result.Length; i++) result[i] = _speakersListView.SelectedItems[i] as IdentificationProfile; return result; }