public void LoadOrdersModel() { bool isExist = fileStorage.ChekExistingFile("orders.xml"); if (isExist == true) { List <Order> orders = fileStorage.LoadData <List <Order> >("orders.xml"); ordersModel.ReplaceCatalog(orders); } }
public void LoadClientsModel() { bool isExist = fileStorage.ChekExistingFile("clients.xml"); if (isExist == true) { List <Client> clients = fileStorage.LoadData <List <Client> >("clients.xml"); ClientsModel.ReplaceCatalog(clients); } }