public override void OnResume()
        {
            angleText.Text = "0.0";
            speedText.Text = "0.0";
            brickController.NXT.Vehicle.LeftPort     = remoteSettings.LeftPort;
            brickController.NXT.Vehicle.RightPort    = remoteSettings.RightPort;
            brickController.NXT.Vehicle.ReverseLeft  = remoteSettings.ReverseLeft;
            brickController.NXT.Vehicle.ReverseRight = remoteSettings.ReverseRight;

            switch (remoteSettings.AdditionalPort)
            {
            case MonoBrick.NXT.MotorPort.OutA:
                additionalMotor = brickController.NXT.MotorA;
                break;

            case MonoBrick.NXT.MotorPort.OutB:
                additionalMotor = brickController.NXT.MotorB;
                break;

            case MonoBrick.NXT.MotorPort.OutC:
                additionalMotor = brickController.NXT.MotorC;
                break;
            }
            additionalMotor.Reverse = remoteSettings.ReverseAdditional;

            if (brickController.NXT.Connection.IsConnected)
            {
                SetUiEnable(true);
            }
            else
            {
                SetUiEnable(false);
            }

            base.OnResume();
        }
			public override void OnResume ()
			{
				angleText.Text = "0.0";
			    speedText.Text = "0.0";
				brickController.NXT.Vehicle.LeftPort = remoteSettings.LeftPort;
				brickController.NXT.Vehicle.RightPort = remoteSettings.RightPort;
				brickController.NXT.Vehicle.ReverseLeft = remoteSettings.ReverseLeft;
				brickController.NXT.Vehicle.ReverseRight = remoteSettings.ReverseRight;
				
				switch(remoteSettings.AdditionalPort){
					case MonoBrick.NXT.MotorPort.OutA:
						additionalMotor = brickController.NXT.MotorA;
					break;
					case MonoBrick.NXT.MotorPort.OutB:
						additionalMotor = brickController.NXT.MotorB;
					break;
					case MonoBrick.NXT.MotorPort.OutC:
						additionalMotor = brickController.NXT.MotorC;
					break;
				}
				additionalMotor.Reverse = remoteSettings.ReverseAdditional; 
				
				if (brickController.NXT.Connection.IsConnected) {
					SetUiEnable (true);
				} 
				else {
					SetUiEnable (false);
				}

				base.OnResume ();
			}