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; }
public WarcabyPresenter(WarcabyView view, Warcaby model) { /*this.view = view; * this.model = model; * view.CommandPressed += View_CommandPressed; * view.DigitPressed += View_DigitPressed; * * InitializeHandlers();*/ }
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); }