예제 #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;
                }
            }
        }
예제 #2
0
        private void SelectItmesBtn_Click(object sender, RoutedEventArgs e)
        {
            IndexForInterval index = new IndexForInterval();

            if (index.GetSelectIndex() == 0)
            {
                SelectItmeBtn(FixkostenListView);
            }
            else if (index.GetSelectIndex() == 1)
            {
                SelectItmeBtn(LebensmittelListView);
            }
            else if (index.GetSelectIndex() == 2)
            {
                SelectItmeBtn(AutoListView);
            }
            else if (index.GetSelectIndex() == 3)
            {
                SelectItmeBtn(BildungListView);
            }
            else if (index.GetSelectIndex() == 4)
            {
                SelectItmeBtn(AppListView);
            }
            else if (index.GetSelectIndex() == 5)
            {
                SelectItmeBtn(UrlaubListView);
            }
            else if (index.GetSelectIndex() == 6)
            {
                SelectItmeBtn(UnterhaltungListView);
            }
            else if (index.GetSelectIndex() == 7)
            {
                SelectItmeBtn(HausListView);
            }
            else if (index.GetSelectIndex() == 8)
            {
                SelectItmeBtn(VerkehrListView);
            }
            else if (index.GetSelectIndex() == 9)
            {
                SelectItmeBtn(PersonalListView);
            }
            else if (index.GetSelectIndex() == 10)
            {
                SelectItmeBtn(SonstAusgabeListView);
            }
            else if (index.GetSelectIndex() == 11)
            {
                SelectItmeBtn(GehaltListView);
            }
            else if (index.GetSelectIndex() == 12)
            {
                SelectItmeBtn(SonstEinkommenListView);
            }
        }
        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));
        }
예제 #4
0
        private async void DeleteItemsBtn_Click(object sender, RoutedEventArgs e)
        {
            IndexForInterval index = new IndexForInterval();

            if (index.GetSelectIndex() == 0)
            {
                await DeleteItemsBtns(FixkostenListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Fixed.ToString(), gridFixkosten, FixkostenListView);
            }
            else if (index.GetSelectIndex() == 1)
            {
                await DeleteItemsBtns(LebensmittelListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Foods.ToString(), gridLebensmittel, LebensmittelListView);
            }
            else if (index.GetSelectIndex() == 2)
            {
                await DeleteItemsBtns(AutoListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Auto.ToString(), gridAuto, AutoListView);
            }
            else if (index.GetSelectIndex() == 3)
            {
                await DeleteItemsBtns(BildungListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Education.ToString(), gridBildung, BildungListView);
            }
            else if (index.GetSelectIndex() == 4)
            {
                await DeleteItemsBtns(AppListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Apps.ToString(), gridApp, AppListView);
            }
            else if (index.GetSelectIndex() == 5)
            {
                await DeleteItemsBtns(UrlaubListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Vacation.ToString(), gridUrlaub, UrlaubListView);
            }
            else if (index.GetSelectIndex() == 6)
            {
                await DeleteItemsBtns(UnterhaltungListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Entertainment.ToString(), gridUnterhaltung, UnterhaltungListView);
            }
            else if (index.GetSelectIndex() == 7)
            {
                await DeleteItemsBtns(HausListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.House.ToString(), gridHaus, HausListView);
            }
            else if (index.GetSelectIndex() == 8)
            {
                await DeleteItemsBtns(VerkehrListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Transport.ToString(), gridVerkehr, VerkehrListView);
            }
            else if (index.GetSelectIndex() == 9)
            {
                await DeleteItemsBtns(PersonalListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.Private.ToString(), gridPeronal, PersonalListView);
            }
            else if (index.GetSelectIndex() == 10)
            {
                await DeleteItemsBtns(SonstAusgabeListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenCosts.OtherCosts.ToString(), gridSonstAusgaben, SonstAusgabeListView);
            }
            else if (index.GetSelectIndex() == 11)
            {
                await DeleteItemsBtns(GehaltListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenIncomen.Salary.ToString(), gridGehalt, GehaltListView);
            }
            else if (index.GetSelectIndex() == 12)
            {
                await DeleteItemsBtns(SonstEinkommenListView);

                Task.WaitAll();
                await GetDatenAsync(CategoryNamenIncomen.OtherIncomes.ToString(), gridSonstEinkommen, SonstEinkommenListView);
            }
        }