//StartRemoveInExercise8
        /// <summary>
        /// Overrides Safir.Dob.MessageSubscriber. Called by the Dob
        /// when a message is sent that is subscribed for.
        /// </summary>
        public void OnMessage(Safir.Dob.MessageProxy messageProxy)
        {
            Capabilities.Vehicles.VehicleMsg msg = (Capabilities.Vehicles.VehicleMsg)messageProxy.Message;

            if (!msg.MessageText.IsNull())
            {
                labelMessage.Text = msg.MessageText.Val.ToString();
            }
            else
            {
                labelMessage.Text = "No text in received message";
            }
            this.Show();
        }
        public void SendMaxNofVehicleMsg()
        {
            // This is just a test to see how you create messages.
            // This is not part of the design pattern.
            Capabilities.Vehicles.VehicleMsg msg =
                new Capabilities.Vehicles.VehicleMsg();

            msg.MessageText.Val = "Number of vehicles reached defined limit.";

            try
            {
                m_connection.Send(msg, new Safir.Dob.Typesystem.ChannelId(), this);
            }
            catch (Safir.Dob.OverflowException)
            {
                // Do nothing OnNotMessageOverflow() will be called when
                // overflow situation solved.
            }
        }