Exemple #1
0
        /// <summary>
        /// Method Stock
        /// constructor for object Stock
        /// which get information from txt-file
        /// </summary>

        public StockOfCars(string addressOfXMLwithCars)
        {
            XMLParser parser = new XMLParser();

            recordsAboutCars = parser.ToParseXMLWithCars(addressOfXMLwithCars);
        }
        /// <summary>
        /// Method StockOfTrucks
        /// constructor for object StockOfTrucks
        /// which get information from xml-file
        /// </summary>

        public StockOfTrucks(string addressOfXMLwithTrucks)
        {
            XMLParser parser = new XMLParser();

            recordsAboutTrucks = parser.ToPareXMLWithTrucks(addressOfXMLwithTrucks);
        }