Ejemplo n.º 1
0
        private async void SonstEinkommenListView_Loaded(object sender, RoutedEventArgs e)
        {
            if (!forAllBereich)
            {
                index = new IndexForInterval();
                if (index.GetIndex())
                {
                    if (index.GetDatumBereichForAll() == false)
                    {
                        await GetDatenAsync(CategoryNamenIncomen.OtherIncomes.ToString(), gridSonstEinkommen, SonstEinkommenListView);

                        forAllBereich = false;
                    }
                    //Wenn alle daten haben gleiche datum
                    else if ((bool)index.GetDatumBereichForAll())
                    {
                        await AlleDatenGleichLadenAsync();

                        forAllBereich = true;
                    }
                    index.SetIndex(false);
                }
                else
                {
                    this.Frame.Navigate(typeof(IntervalDatum));
                    IndexPivotMain = pivotMain.SelectedIndex;
                }
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var appShell = new ViewModels.AppShellToggleButton();

            appShell.SetShellButton(true);
            IndexForInterval index = new IndexForInterval();

            index.SetIndex(true);
            index.SetDatumsBereich(DatePickerFirst.Date.DateTime, DatePickerSeconder.Date.DateTime, CheckInterval.IsChecked, CheckGleichDatumInterval.IsChecked);

            Frame.Navigate(typeof(ReportPage_Mobile));
        }