public FormShoppingList() { InitializeComponent(); formToDo = new FormToDoList(); formToDo.setParentForm(this); shoppingRepo = new ShoppingItemRepository(); listController = new ListController(shoppingRepo); updateListBox(); }
public ListController() { // Read the initial list from the database repository itemDbRepository = new ShoppingItemRepository(); shoppingList = new ShoppingList(itemDbRepository.ReadAll()); }