/// <summary>
        /// Starts the monitor.
        /// </summary>
        public void StartMonitor()
        {
            try
            {
                var client = new CommServerClient();

                ////var measurements = new ConfiguredMeasurements();

                ////for (int i = 0; i < 50; i++)
                ////{
                ////    var measurement = new ConfiguredMeasurement(true);
                ////    measurement.DeviceId = new ConfiguredMeasurementItem(true) { Value = "Some_Device_Id" + i.ToString(CultureInfo.InvariantCulture), MappingType = MappingTypes.StaticType };
                ////    measurement.SensorId = new ConfiguredMeasurementItem(true) { Value = "Some_Sensor_Id" + i.ToString(CultureInfo.InvariantCulture), MappingType = MappingTypes.StaticType };
                ////    measurement.Unit = new ConfiguredMeasurementItem(true) { Value = "m3", MappingType = MappingTypes.StaticType };
                ////    measurement.DataType = CommonFormatDataTypes.FloatType;
                ////    measurement.Timestamp = new ConfiguredMeasurementItem(true) { Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcTimestampType };
                ////    measurement.Quality = new ConfiguredMeasurementItem(true) { Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcQualityType };
                ////    measurement.Value = new ConfiguredMeasurementItem(true) { Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcValueType };
                ////    measurement.Active = true;
                ////    measurements.Add(measurement);
                ////}
                client.StartMonitorRequest(MainWindow.ClientUri, Guid.NewGuid(), this.mainWindowViewModel.Configuration.ConfiguredMeasurements);
                client.Close();

                this.measurementsMonitorStarted = true;
            }
            catch (Exception exception)
            {
                this.mainWindowViewModel.Host.UserInterface.DisplayMessage(exception.Message, Resources.Language_Selection, MessageButton.ButtonsOk, MessageType.MessageInformation, DefaultMessageButton.ButtonOk);
            }
        }
        /// <summary>
        /// Buttons the test start monitor request.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void ButtonTestStartMonitorRequest(object sender, RoutedEventArgs e)
        {
            try
            {
                var client       = new CommServerClient();
                var measurements = new ConfiguredMeasurements();

                for (int i = 0; i < 5; i++)
                {
                    Random rnd          = new Random();
                    var    randomNumber = rnd.Next(100);
                    var    measurement  = new ConfiguredMeasurement(true);
                    measurement.DeviceId = new ConfiguredMeasurementItem(true)
                    {
                        Value = "DeviceId_" + randomNumber.ToString(CultureInfo.InvariantCulture), MappingType = MappingTypes.StaticType
                    };
                    measurement.SensorId = new ConfiguredMeasurementItem(true)
                    {
                        Value = "SensorId_" + randomNumber.ToString(CultureInfo.InvariantCulture), MappingType = MappingTypes.StaticType
                    };
                    measurement.Unit = new ConfiguredMeasurementItem(true)
                    {
                        Value = "m3", MappingType = MappingTypes.StaticType
                    };
                    measurement.DataType  = CommonFormatDataTypes.FloatType;
                    measurement.Timestamp = new ConfiguredMeasurementItem(true)
                    {
                        Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcTimestampType
                    };
                    measurement.Quality = new ConfiguredMeasurementItem(true)
                    {
                        Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcQualityType
                    };
                    measurement.Value = new ConfiguredMeasurementItem(true)
                    {
                        Value = "Some_Opc_ItemId", MappingType = MappingTypes.OpcValueType
                    };
                    measurement.Active = true;
                    measurements.Add(measurement);
                }

                client.StartMonitorRequest(ClientUri, Guid.NewGuid(), measurements);
                client.Close();
            }
            catch (Exception exception)
            {
                MessageBox.Show("Exception in client call: " + exception.Message);
            }
        }