/// <summary>
 /// Buttons the test stop monitor request.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void ButtonTestStopMonitorRequest(object sender, RoutedEventArgs e)
 {
     try
     {
         var client = new CommServerClient();
         client.StopMonitorRequest(ClientUri, Guid.NewGuid());
         client.Close();
     }
     catch (Exception exception)
     {
         MessageBox.Show("Exception in client call: " + exception.Message);
     }
 }
        /// <summary>
        /// Stops the monitor.
        /// </summary>
        public void StopMonitor()
        {
            try
            {
                var client = new CommServerClient();
                client.StopMonitorRequest(MainWindow.ClientUri, Guid.NewGuid());
                client.Close();

                this.measurementsMonitorStarted = false;
            }
            catch (Exception exception)
            {
                this.mainWindowViewModel.Host.UserInterface.DisplayMessage(exception.Message, Resources.Language_Selection, MessageButton.ButtonsOk, MessageType.MessageInformation, DefaultMessageButton.ButtonOk);
            }
        }