Пример #1
0
        public static TreeViewMappingElement CreateElement(IAccountingElement iNewElmt)
        {
            var res = new TreeViewMappingElement(iNewElmt.GetName());

            foreach (IAccountingElement item in iNewElmt.GetItemList())
            {
                res.AddElement(CreateElement(item));
            }
            return(res);
        }
        private void AddRow(IAccountingElement item, ICcyAsset convCcy, bool isTotal = false, double?lastTotal = null)
        {
            IAccount sum = item.GetTotalAccount(FXMarketUsed, AssetMarketUsed, convCcy, item.GetName(), lastTotal: lastTotal);

            AddRow(sum, isTotal);
        }