public Controller_MainForm(int sizeField,int amountTanks,int amountApples,int speedGame) { InitializeComponent(); model = new Model(sizeField,amountTanks,amountApples,speedGame); view = new View(model); this.Controls.Add(view); }
public ControllerMainForm(int sizeField, int amountTanks, int amountApples, int speedGame) { InitializeComponent(); model = new Model(sizeField, amountTanks, amountApples, speedGame); model.changeStrip += new StripDel(ChangerStatusStripLbl); view = new View(model); this.Controls.Add(view); SoundEnable = true; sp = new SoundPlayer(Properties.Resources.PacmanMove); }