Beispiel #1
0
 public WarcabyPresenter(Warcaby model, WarcabyView view) //konstruktor prezentera umożliwiający komunikacje z widokiem i modelem
 {
     View                  = view;
     this.model            = model;
     view.UserInteraction += HandleUserInteraction;
     view.aMouseClick     += HandleMouseInteraction;
     view.ButtonClick     += HandleButtonInteraction;
 }
Beispiel #2
0
 public WarcabyPresenter(WarcabyView view, Warcaby model)
 {
     /*this.view = view;
      * this.model = model;
      * view.CommandPressed += View_CommandPressed;
      * view.DigitPressed += View_DigitPressed;
      *
      * InitializeHandlers();*/
 }
Beispiel #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            Warcaby          model     = new Warcaby();
            WarcabyView      view      = new WarcabyView();
            WarcabyPresenter presenter = new WarcabyPresenter(model, view);

            Application.Run(view);
        }