コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: ControllerMainForm.cs プロジェクト: HoTTab1CH/Tanks
 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);
 }