private void Box_Click(object sender, EventArgs e) { var lvlrealisation = new LvlImplementation(); lvlrealisation.GetLVLData((sender as PictureBox).Tag.ToString()); Create(lvlrealisation); }
public LVLPresenter(IGameForm view, IGUIPresenter v, LvlImplementation curLVL) { this.CurLvl = curLVL; curLVL.AddFishes(); curLVL.SetDeep(); this.view = view; this.gui = v; view.LVLPresenter = this; view.BackImage = CurLvl.Image; _sp = new SoundPlayer(); _drawer = new Drawer(); view.RepaintScreen += View_RepaintScreen; view.FormMouseClick += View_MouseLeftClick; view.KeyDOWN += View_KeyDOWN; view.KeyUP += View_KeyUP; view.MainTimerTick += View_MainTimerTick; view.FormClose += View_FormClose; view.DecSacietyTimerTick += View_DecSacietyTimerTick; }