static void Main() { DataAccessLayer dal = new DataAccessLayer(); Game game = new Game(); game.InitializePorts(); Controller controller = new Controller(ref dal, ref game); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(ref controller)); }
/// <summary> /// Constructor that references DAL and Game /// via inparameters. /// </summary> public Controller(ref DataAccessLayer dal, ref Game game) { this.dal = dal; this.game = game; }