private void inputTextBox_KeyDown(object sender, global::System.Windows.Forms.KeyEventArgs e)
 {
     base.OnKeyDown(e);
     if (e.KeyCode == global::System.Windows.Forms.Keys.Enter)
     {
         string message = inputTextBox.Text;
         inputTextBox.Text  = "";
         e.Handled          = true;
         e.SuppressKeyPress = true;
         client.Send(message);
         global::CustomUserControlsLibrary.ColorListBoxItem item = new global::CustomUserControlsLibrary.ColorListBoxItem(global::System.DateTime.Now.ToString(global::ListenerApplication.ListenerMainForm.DATETIME_FORMAT) + ": " + message, inputMessageColorListBox.BackColor,
                                                                                                                          inputMessageColorListBox.ForeColor);
         inputMessageColorListBox.Items.Insert(0, item);
     }
 }
 private void recognizeButton_Click(object sender, global::System.EventArgs e)
 {
     if (soundVisualizer.Sound == null)
     {
         return;
     }
     soundVisualizer.Sound.GenerateMemoryStream();
     speechRecognitionEngine.SetInputToWaveStream(soundVisualizer.Sound.WAVMemoryStream);
     global::System.Speech.Recognition.RecognitionResult r = speechRecognitionEngine.Recognize();
     if (r != null)
     {
         inputTextBox.Text = r.Text;
         client.Send(r.Text);
         global::CustomUserControlsLibrary.ColorListBoxItem item = new global::CustomUserControlsLibrary.ColorListBoxItem(global::System.DateTime.Now.ToString(global::ListenerApplication.ListenerMainForm.DATETIME_FORMAT) + ": " + r.Text, inputMessageColorListBox.BackColor,
                                                                                                                          inputMessageColorListBox.ForeColor);
         inputMessageColorListBox.Items.Insert(0, item);
     }
 }
 private void ShowContinuousRecognizedSound(string recognizedString)
 {
     global::CustomUserControlsLibrary.ColorListBoxItem item = new global::CustomUserControlsLibrary.ColorListBoxItem(global::System.DateTime.Now.ToString(global::ListenerApplication.ListenerMainForm.DATETIME_FORMAT) + ": " + recognizedString, continuousInputColorListBox.BackColor,
                                                                                                                      continuousInputColorListBox.ForeColor);
     continuousInputColorListBox.Items.Insert(0, item);
 }
 private void ShowProgress(global::CommunicationLibrary.CommunicationProgressEventArgs e)
 {
     global::CustomUserControlsLibrary.ColorListBoxItem item;
     item = new global::CustomUserControlsLibrary.ColorListBoxItem(e.Message, communicationLogColorListBox.BackColor, communicationLogColorListBox.ForeColor);
     communicationLogColorListBox.Items.Insert(0, item);
 }