public void LoadOrdersModel()
        {
            bool isExist = fileStorage.ChekExistingFile("orders.xml");

            if (isExist == true)
            {
                List <Order> orders = fileStorage.LoadData <List <Order> >("orders.xml");
                ordersModel.ReplaceCatalog(orders);
            }
        }
예제 #2
0
        public void LoadClientsModel()
        {
            bool isExist = fileStorage.ChekExistingFile("clients.xml");

            if (isExist == true)
            {
                List <Client> clients = fileStorage.LoadData <List <Client> >("clients.xml");
                ClientsModel.ReplaceCatalog(clients);
            }
        }