Пример #1
0
        public static void AddProduct(string ProductName, string shortCode, string desc, int price, string manufactureName, string category)
        {
            var addproductdata = $"{++lastId},{ProductName},{manufactureName},{shortCode},{category},{desc},{price}";

            ProductFileManager.AddProductInFile(addproductdata);
            data = ProductFileManager.ReadDataFromFile();
            Console.ReadKey();
        }
Пример #2
0
        public static void AddProduct(string ProductName, string shortCode, string desc, int price, string manufactureName, string category)
        {
            var addproductdata = $"{++lastId},{ProductName},{manufactureName},{shortCode},{category},{desc},{price}";

            ProductFileManager.AddProductInFile(addproductdata);
            data = ProductFileManager.ReadDataFromFile();
            //data.Add(new Product
            //{
            //   product_Name=ProductName,
            //    Manufacturer = manufactureName,
            //    ProductShortCode = shortCode,
            //    ProductCategory = category,
            //    ProductDescription = desc,
            //    Selling_Price = price
            //});
            Console.ReadKey();
        }