/// <summary> /// Adds a speaker profile to the speakers list /// </summary> /// <param name="speaker">The speaker profile to add</param> public void AddSpeaker(Profile 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 Profile[] GetSelectedProfiles() { if (_speakersListView.SelectedItems.Count == 0) throw new Exception("No Speakers Selected."); Profile[] result = new Profile[_speakersListView.SelectedItems.Count]; for (int i = 0; i < result.Length; i++) result[i] = _speakersListView.SelectedItems[i] as Profile; return result; }