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