private void HomePage_Loaded(object sender, RoutedEventArgs e) { var btn = new ViewModels.AppShellToggleButton(); btn.SetShellButton(true); var loader = new Windows.ApplicationModel.Resources.ResourceLoader(); BtnTxtAusgbe.Text = loader.GetString("BtnCostsHome"); BtnTxtEinnahme.Text = loader.GetString("BtnIncomesHome"); //txtBalanceText.Text = loader.GetString("TxtBalanceHome"); //txtIncomeText.Text = loader.GetString("TxtIncomesHome"); //txtCostText.Text = loader.GetString("TxtCostsHome"); var datum = new MonatYearDaten(); if (datum.Monat > 0 || datum.Year > 0) { BtnMonatAuswahl.Content = datum.GetMonatYearString(); } //txtAusgabe.Text = datum.GetWertAusgabe().ToString("C", uNFI.GetNFI()); //txtEinnahme.Text = datum.GetWertEinnahme().ToString("C", uNFI.GetNFI()); //txtBalance.Text = datum.GetWertBalance().ToString("C", uNFI.GetNFI()); //if (datum.GetWertBalance() < 0) //{ // //txtBalance.Foreground = new SolidColorBrush(Color.FromArgb(255, 204, 51, 51)); //} }
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)); }
private async void Page_Loaded(object sender, RoutedEventArgs e) { var btn = new ViewModels.AppShellToggleButton(); btn.SetShellButton(true); await DatenLoaded(); //ObservableCollection<ListBalance> listBalance = new ObservableCollection<ListBalance>(); //listBalance = ListBalance.GetBalanceListe(); //BalanceListView.ItemsSource = listBalance.OrderBy(item => item.Datum.TimeOfDay); //BalanceListView.ItemsSource = listBalance; //BalanceListView.ItemsSource = ListBalance.GetBalanceListe(); VisualStateManager.GoToState(this, BalanceState.Name, true); }
private void Calendar_Loaded(object sender, RoutedEventArgs e) { var btn = new ViewModels.AppShellToggleButton(); btn.SetShellButton(false); DatePickerConverter dt = new DatePickerConverter(); BtnJanuar.Content = dt.Convert(1).ToString(); BtnFebruar.Content = dt.Convert(2).ToString(); BtnMarz.Content = dt.Convert(3).ToString(); BtnApril.Content = dt.Convert(4).ToString(); BtnMai.Content = dt.Convert(5).ToString(); BtnJuni.Content = dt.Convert(6).ToString(); BtnJuli.Content = dt.Convert(7).ToString(); BtnAugust.Content = dt.Convert(8).ToString(); BtnSeptember.Content = dt.Convert(9).ToString(); BtnOktober.Content = dt.Convert(10).ToString(); BtnNovember.Content = dt.Convert(11).ToString(); BtnDezember.Content = dt.Convert(12).ToString(); }
private void Page_Loaded(object sender, RoutedEventArgs e) { var appShell = new ViewModels.AppShellToggleButton(); appShell.SetShellButton(false); }
private void AddPage_Mobile_Loaded(object sender, RoutedEventArgs e) { var btn = new ViewModels.AppShellToggleButton(); btn.SetShellButton(false); if (Extensions.DeviceFamilyStringExtensions.ToDeviceFamily(Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily) == Models.DeviceFamily.Mobile) { fixKosten.Width = fixKostenStack.ActualWidth - 20; fixKosten.Height = fixKostenStack.ActualWidth - 20; food.Width = fixKostenStack.ActualWidth - 20; food.Height = fixKostenStack.ActualWidth - 20; auto.Width = fixKostenStack.ActualWidth - 20; auto.Height = fixKostenStack.ActualWidth - 20; bildung.Width = fixKostenStack.ActualWidth - 20; bildung.Height = fixKostenStack.ActualWidth - 20; softService.Width = fixKostenStack.ActualWidth - 20; softService.Height = fixKostenStack.ActualWidth - 20; urlaub.Width = fixKostenStack.ActualWidth - 20; urlaub.Height = fixKostenStack.ActualWidth - 20; unterhaltung.Width = fixKostenStack.ActualWidth - 20; unterhaltung.Height = fixKostenStack.ActualWidth - 20; allInHouse.Width = fixKostenStack.ActualWidth - 20; allInHouse.Height = fixKostenStack.ActualWidth - 20; transport.Width = fixKostenStack.ActualWidth - 20; transport.Height = fixKostenStack.ActualWidth - 20; personKosten.Width = fixKostenStack.ActualWidth - 20; personKosten.Height = fixKostenStack.ActualWidth - 20; others.Width = fixKostenStack.ActualWidth - 20; others.Height = fixKostenStack.ActualWidth - 20; } else { CmBoxItemCost.Width = ActualWidth / 2; CmBoxItemIncome.Width = ActualWidth / 2; BtnCancel.Visibility = Visibility.Collapsed; fixKosten.Width = fixKostenStack.ActualWidth / 2; fixKosten.Height = fixKostenStack.ActualWidth / 2; fixKosten.Style = null; food.Width = fixKostenStack.ActualWidth / 2; food.Height = fixKostenStack.ActualWidth / 2; food.Style = null; auto.Width = fixKostenStack.ActualWidth / 2; auto.Height = fixKostenStack.ActualWidth / 2; auto.Style = null; bildung.Width = fixKostenStack.ActualWidth / 2; bildung.Height = fixKostenStack.ActualWidth / 2; bildung.Style = null; softService.Width = fixKostenStack.ActualWidth / 2; softService.Height = fixKostenStack.ActualWidth / 2; softService.Style = null; urlaub.Width = fixKostenStack.ActualWidth / 2; urlaub.Height = fixKostenStack.ActualWidth / 2; urlaub.Style = null; unterhaltung.Width = fixKostenStack.ActualWidth / 2; unterhaltung.Height = fixKostenStack.ActualWidth / 2; unterhaltung.Style = null; allInHouse.Width = fixKostenStack.ActualWidth / 2; allInHouse.Height = fixKostenStack.ActualWidth / 2; allInHouse.Style = null; transport.Width = fixKostenStack.ActualWidth / 2; transport.Height = fixKostenStack.ActualWidth / 2; transport.Style = null; personKosten.Width = fixKostenStack.ActualWidth / 2; personKosten.Height = fixKostenStack.ActualWidth / 2; personKosten.Style = null; others.Width = fixKostenStack.ActualWidth / 2; others.Height = fixKostenStack.ActualWidth / 2; others.Style = null; } }