示例#1
0
        static void Main(string[] args)
        {
            RechnerModel         model      = new RechnerModel();
            ConsoleView          view       = new ConsoleView(model);
            AnwendungsController controller = new AnwendungsController(view, model);

            controller.Ausfuehren();
        }
示例#2
0
 public ConsoleView(RechnerModel model)
 {
     //this. weil das attribut und das argument beide model heißen
     this.model          = model;
     BenutzerWillBeenden = false;
 }
示例#3
0
 public AnwendungsController(ConsoleView view, RechnerModel model)
 {
     this.view  = view;
     this.model = model;
 }