public Controller(MyForm myForm, Game15 game15) { this.game15 = game15; this.myForm = myForm; myForm.KeyDown += MyForm_KeyDown; Application.Run(myForm); }
static void Main(string[] args) { Game15 game15 = new Game15(); MyForm myForm = new MyForm(); //ConsoleDraw consoleDraw = new ConsoleDraw(); //ConsoleController consoleController = new ConsoleController(game15, consoleDraw); Controller controller = new Controller(myForm, game15); }
public ConsoleController(Game15 Game15, ConsoleDraw ConsoleDraw) { this.ConsoleDraw = ConsoleDraw; this.Game15 = Game15; ConsoleDraw.Draw(Game15.arr15); }