static void Main(string[] args) { RechnerModel model = new RechnerModel(); ConsoleView view = new ConsoleView(model); AnwendungsController controller = new AnwendungsController(view, model); controller.Ausfuehren(); }
public ConsoleView(RechnerModel model) { //this. weil das attribut und das argument beide model heißen this.model = model; BenutzerWillBeenden = false; }
public AnwendungsController(ConsoleView view, RechnerModel model) { this.view = view; this.model = model; }