d85f2e0fb3
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich cleanup and rework PDF switch to HTML export fix Colorsystem Farben für knöpfe hinzugefügt als anpassung button color button color primary and secondary change
31 lines
695 B
C#
31 lines
695 B
C#
using System.Diagnostics;
|
|
using cfs_tracker.ViewModels;
|
|
|
|
namespace cfs_tracker.Views;
|
|
|
|
public partial class YearPage : ContentPage
|
|
{
|
|
private readonly YearViewModel _viewModel;
|
|
|
|
public YearPage(YearViewModel viewModel)
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = _viewModel = viewModel;
|
|
}
|
|
|
|
protected override async void OnAppearing()
|
|
{
|
|
base.OnAppearing();
|
|
|
|
try
|
|
{
|
|
await _viewModel.RefreshAsync();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Debug.WriteLine("YearPage crash:");
|
|
Debug.WriteLine(ex.ToString());
|
|
await DisplayAlertAsync("Fehler", ex.ToString(), "OK");
|
|
}
|
|
}
|
|
} |