Exemplo n.º 1
0
        protected async override Task OnInitializedAsync()
        {
            FormSort          = Sort = DefaultSort;
            PagingContext     = new PagingContext(LoadPageAsync, Loading);
            CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync();

            Navigator.LocationChanged += OnLocationChanged;
            BindEvents();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        protected async override Task OnInitializedAsync()
        {
            EventHandlers.Add <LocallyStoredExpenseCreated>(this);
            EventHandlers.Add <LocallyStoredExpensesPublished>(this);

            CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync();

            await base.OnInitializedAsync();

            await LoadAsync();
        }
Exemplo n.º 4
0
        protected override async Task OnInitializedAsync()
        {
            PagingContext = new PagingContext(LoadDataAsync, Loading);

            BindEvents();

            MonthModel = new MonthModel(Year, Month);

            CurrencyFormatter = await CurrencyFormatterFactory.CreateAsync();

            Reload();
        }
Exemplo n.º 5
0
        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;
            }
        }
Exemplo n.º 6
0
        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();
        }
Exemplo n.º 7
0
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            currencyFormatter = await CurrencyFormatterFactory.CreateAsync();
        }
Exemplo n.º 8
0
 public RUBTests()
 {
     formatter = CurrencyFormatterFactory.Build(Language.Russian, Currency.RUB);
 }