Example #1
0
        //{
        //    { 1, new Product (1, "Ao khoac nam", 150000) },
        //    { 2, new Product (2, "Ao khoac kaki", 350000) },
        //    { 3, new Product (3, "Ao khoac du", 250000) },
        //    { 4, new Product (4, "Dam xoe nu", 500000) },
        //    { 5, new Product (5, "Ao thun nu", 450000) },
        //    { 6, new Product (6, "Hoodie nam", 320000) },
        //    { 7, new Product (7, "Ao chong nang", 630000)}
        //};
        public static Dictionary <int, Product> ReadData()
        {
            string fulllink = $@"{path}{filename}";

            ReadWriteFile <Dictionary <int, Product> > .ReadData(fulllink, ref Products);

            return(Products);
        }
Example #2
0
        public void ReadData()
        {
            string fulllink = $@"{path}{nameFileData}";

            ReadWriteFile <Listorder> .ReadData(fulllink, ref listorder);
        }