protected async override Task OnInitializedAsync() { FormSort = Sort = DefaultSort; PagingContext = new PagingContext(LoadPageAsync, Loading); CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync(); Navigator.LocationChanged += OnLocationChanged; BindEvents(); }
protected override async Task OnInitializedAsync() { Log.Debug("Summary.OnInitializedAsync"); BindEvents(); SortDescriptor = new SortDescriptor <SummarySortType>(SummarySortType.ByCategory, SortDirection.Ascending); await base.OnInitializedAsync(); formatter = await CurrencyFormatterFactory.CreateAsync(); }
protected async override Task OnInitializedAsync() { EventHandlers.Add <LocallyStoredExpenseCreated>(this); EventHandlers.Add <LocallyStoredExpensesPublished>(this); CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync(); await base.OnInitializedAsync(); await LoadAsync(); }
protected override async Task OnInitializedAsync() { PagingContext = new PagingContext(LoadDataAsync, Loading); BindEvents(); MonthModel = new MonthModel(Year, Month); CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync(); Reload(); }
protected async override Task OnParametersSetAsync() { await base.OnParametersSetAsync(); Title = $"List of Exchange Rates for {TargetCurrency}."; if (isShown) { Models = await Queries.QueryAsync(new ListTargetCurrencyExchangeRates(TargetCurrency)); CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync(); isShown = false; } }
protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); StartYear = new YearModel(DateTime.Today.Year - 8); CategoryKey = GuidKey.Create(CategoryGuid, KeyFactory.Empty(typeof(Category)).Type); CategoryName = await Queries.QueryAsync(new GetCategoryName(CategoryKey)); CategoryColor = await Queries.QueryAsync(new GetCategoryColor(CategoryKey)); CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync(); await LoadAsync(); }
protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); currencyFormatter = await CurrencyFormatterFactory.CreateAsync(); }