Пример #1
0
        internal int UpdateChainStores(string storesXmlFilePath, BackgroundWorker worker, DoWorkEventArgs e, ProgressBar progressBar)
        {
            StoresXmlDecoder xmlDecoder = new StoresXmlDecoder();
            Chain            chain      = xmlDecoder.DecodeChainFromFile(storesXmlFilePath);
            int storeNum = InsertChainStoresIntoCatalog(chain, worker, e, progressBar);

            return(storeNum);
        }
Пример #2
0
        static void TestGetChainAndItsStoresFromXml()
        {
            StoresXmlDecoder decoder           = new StoresXmlDecoder();
            string           storesXmlFilePath = $@"{Constants.XmlStoresDirPath}\Stores7290027600007-000-201609060827.xml";
            Chain            chain             = decoder.DecodeChainFromFile(storesXmlFilePath);

            foreach (var store in chain.Stores)
            {
                Console.WriteLine(store);
            }
        }