public MainPage()
        {
            this.InitializeComponent();

            NavigationCacheMode = NavigationCacheMode.Required;

            Config.Instance = new Config(this)
            {
                Pivot   = searchPivot,
                AppName = "WieBetaaltWat",
                Ad      = new ConfigAd()
                {
                    AdHolder        = AdHolder,
                    AdApplicationId = "de76f64c-70b2-49d7-99b6-924257121127",
                    SmallAdUnitId   = "11569201",
                    MediumAdUnitId  = "11569200",
                    LargeAdUnitId   = "11569199"
                }
            };

#if DEBUG
            Core.Config.Instance.LicenseInformation = CurrentAppSimulator.LicenseInformation;
#else
            Core.Config.Instance.LicenseInformation = CurrentApp.LicenseInformation;
#endif

            Core.License.LicenseInfo.SetLicenseInformation();

            Register.Execute();

            PageDataContext = new WieBetaaltWatDataContext();
            DataContext     = PageDataContext;
        }
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataContext = e.Parameter as WieBetaaltWatDataContext;
            DataContext  = _dataContext;

            var storage = new Storage();
            var param   = new Api.Parameter.InvoerItemParameter();

            param.SingleList    = _dataContext.Lijsten.SingleOrDefault(p => p.ProjectId.Equals(_dataContext.ProjectId.ToString()));
            param.LoginName     = storage.LoadFromLocal(StorageKeys.LoggedInName)?.ToString() ?? string.Empty;
            param.LoginPassword = storage.LoadFromLocal(StorageKeys.LoggedInPassword)?.ToString() ?? string.Empty;

            InvoerExecute invoerExecute = new InvoerExecute()
            {
                Parameters = param
            };

            invoerExecute.Execute();

            var result = invoerExecute.Result;

            _dataContext.SetLijstPersons(result.Persons);
        }