EditCustomer::EditCustomer(Store & store) : editCustomerName(store) { entries.push_back(MenuEntry("Back", exitHandler)); entries.push_back(MenuEntry("Edit name", editCustomerName)); }
void MenuState::AddEntry(int id, std::string text) { entries_.push_back(MenuEntry(id, text)); }