static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new FormMineSweeper()); //Models M_jogador = new Jogador(); M_menu = new Menu(); M_mapa = new Mapa(); M_Login = new Login(); //Views V_Menu = new FormMenu(); V_Mapa = new FormMineSweeper(); V_Instrucoes = new Instrucoes(); V_Login = new FormLogin(); V_OnOff = new FormOnOff(); V_PedirNome = new PedirNome(); V_ConsultarPerfil = new FormConsultarPerfil(); //Controllers C_menu = new ControllerMenu(); C_mapa = new ControllerMapa(); C_Login = new ControllerLogin(); Application.Run(V_OnOff); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; M_mapa = new Mapa(); M_menu = new Minesweeper.Models.Menu(); M_jogador = new Jogador(); M_Login = new Minesweeper.Models.Login(); }