protected override void SetNewDraftDefaults(FundRequestDTO draft) { draft.BankAccountId = AppArgs.AccountId; draft.RequestDate = DB.NextRequestDate(); draft.SerialNum = DB.NextRequestSerial(); Payees.SetItems(DB.GetPayees()); Allocations.DisplayItems(draft); }
protected override async void OnWindowLoaded() { if (Draft.Id != 0) { return; } List <string> items = null; await Task.Run(() => items = AppArgs.Vouchers.GetPayees()); UIThread.Run(() => Payees.SetItems(items)); }