/// <summary>
        /// Handles the get concept details completed of the Terminology Client control.
        /// Creates and output and adds it to the list box.
        /// </summary>
        /// <param name="sender">The terminology client.</param>
        /// <param name="e">The <see cref="GetConceptDetailsCompletedEventArgs"/> instance containing the event data.</param>
        private void Client_GetConceptDetailsCompleted(object sender, GetConceptDetailsCompletedEventArgs e)
        {
            if (e.Error == null && e.Result != null)
            {
                SingleConceptMatchingOutput output = new SingleConceptMatchingOutput()
                {
                    OriginalInputFieldText = this.SingleConceptMatching.InputBoxText,
                    OriginalAdditionalText = this.SingleConceptMatching.AdditionalTextBoxText,
                    EncodedConcept = new EncodedConcept()
                    {
                        EncodedSingleConcept = e.Result
                    }
                };

                this.outputs.Add(output);
                this.SingleConceptMatching.Clear();
                this.SingleConceptMatching.IsEnabled = true;
            }

            this.HideProgressBar();
        }
        /// <summary>
        /// Encodes the output to the single concept matcher.
        /// </summary>
        /// <param name="encodedConcept">The encoded concept.</param>
        private void EncodeOutput(EncodedConcept encodedConcept)
        {
            SingleConceptMatchingOutput output = new SingleConceptMatchingOutput()
            {
                OriginalInputFieldText = this.SingleConceptMatching.InputBoxText,
                OriginalAdditionalText = this.SingleConceptMatching.AdditionalTextBoxText,
                EncodedConcept = encodedConcept
            };

            this.outputs.Add(output);
            this.OutputListBox.SelectedIndex = this.OutputListBox.Items.Count - 1;

            this.SingleConceptMatching.Clear();
            this.SingleConceptMatching.IsEnabled = true;
            this.SingleConceptMatching.FocusInputBox();

            this.HideProgressBar();
        }