Example #1
0
        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;
 }
Example #3
0
 public AnwendungsController(ConsoleView view, RechnerModel model)
 {
     this.view  = view;
     this.model = model;
 }