////public override void Cleanup()
        ////{
        ////    // Clean own resources if needed

        ////    base.Cleanup();
        ////}

        internal async Task InitializeAsync(Guid?id, int?index)
        {
            IsInit        = true;
            InitNewSearch = true;

            SelectedSearch           = null;
            SelectedReisMogelijkheid = null;

            DataLoader.LoadingState = LoadingState.None;

            InitNewSearch = false;


            if (id.HasValue)
            {
                var search = await PlannerService.GetSearchAsync(id.Value);

                if (search != null)
                {
                    _tempIndex     = index;
                    SelectedSearch = search;
                }
            }

            RefreshSearchHistoryAsync();
        }
        ////public override void Cleanup()
        ////{
        ////    // Clean own resources if needed

        ////    base.Cleanup();
        ////}

        internal async Task Initialize(Guid?id)
        {
            PlannerSearch = null;
            ReisPrijs     = null;

            if (id.HasValue)
            {
                var search = await PlannerService.GetSearchAsync(id.Value);

                if (search != null)
                {
                    PlannerSearch = search;

                    ReisPrijs = await DataLoader.LoadAsync(() => NSApiService.GetPrijs(PlannerSearch));
                }
            }
        }
        ////public override void Cleanup()
        ////{
        ////    // Clean own resources if needed

        ////    base.Cleanup();
        ////}



        internal async Task Initialize(Guid?id, int?index, DateTime?startTime, string spoor)
        {
            SelectedSearch = null;
            StartDate      = startTime;
            Spoor          = spoor;

            Index = index;

            if (id.HasValue)
            {
                var search = await PlannerService.GetSearchAsync(id.Value);

                if (search != null)
                {
                    SelectedSearch = search;
                }
            }

            Minutes   = 10;
            Reminders = ReminderService.GetReminders();
        }