//public void RefillFromCache(string cacheDir) //{ // CacheDir = cacheDir; // var dict = CacheReader2.getTaxonomyTerms(CacheDir); // _terms = null; // _terms = new Dictionary<int, string>(); // foreach (var kv in dict) // _terms.Add((int)kv.Key, kv.Value); // IsFilled = true; //} public async Task RefillFromServer(ByfServerVM byfServer) { var client = byfServer.Client; _terms = await client.GetTaxonomyDictionary(); _payees = await client.GetPayeesDictionary(); BankAcctByGlAcct = await client.GetBankAcctsByGLAcctDict(); IsFilled = true; }
public MainWindowVM2(ITenantDBsDir tenantDBsDir) : base(tenantDBsDir) { SetBranchAndSystemNames(); AppArgs.Credentials.HumanName = "Migrator"; AppArgs.Credentials.Roles = "Admin"; SetCaption(AppArgs.Credentials.NameAndRole); ByfServer = new ByfServerVM(this); MasterData = new MasterDataPaneVM(this); TransactionData = new TransactionDataPaneVM(this); LeaseBalances = new LeaseBalancesPaneVM(this); CheckVouchers = new CheckVouchersPaneVM(this); BankMemos = new BankMemosPaneVM(this); JournalVouchers = new JournalVouchersPaneVM(this); }