public App()
        {
            InitializeComponent();

            CdbMobileAppStorage store = CdbMobileAppStorage.Instance;
            var config = store.getActiveConfiguration();

            if (config != null)
            {
                this.loadDefaultMainPage();
            }
            else
            {
                MainPage = new InitialCdbConfigurationPage(this);
            }
        }
        void PopulateData()
        {
            viewModel.ActiveHosts.Clear();

            viewModel.IsAuthenticated = false;
            viewModel.ActiveAuthUser  = "";

            var result = appStorage.getActiveConfiguration();

            if (result != null)
            {
                var cdbAddress = result.CdbAddress;
                viewModel.ActiveHosts.Add(cdbAddress);
                viewModel.ActiveHost = cdbAddress;
            }

            var activeAuth = appStorage.getActiveAuth();

            if (activeAuth != null)
            {
                viewModel.ActiveAuthUser  = activeAuth.Username;
                viewModel.IsAuthenticated = true;
            }
        }