// Constructor
        public MainPage()
        {
            InitializeComponent();

            BuildLocalizedApplicationBar();

            var agentControl = new AgentControl();
            agentControl.StartAgent();

            var batteryLevel = BBB_WP_Common.Device.DeviceInfo.RemainingChargePercent;
            var dischargeTime = BBB_WP_Common.Device.DeviceInfo.RemainingDischargeTime;
            var isPlugged = BBB_WP_Common.Device.DeviceInfo.IsPluggedToPower;

            setRectangleBattery(batteryLevel);
            setTextStatus(batteryLevel, dischargeTime, isPlugged);
            //tbBatteryLevel.Text = BBB_WP_Common.Device.DeviceInfo.RemainingChargePercent.ToString();
        }
        public SettingsPage()
        {
            InitializeComponent();

            agentControl = new AgentControl();
        }