예제 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     FormMenu    = new formMenu();
     FormAutos   = new formAutos();
     FormCliente = new formCliente();
     FormIni     = new FormInicioSesion();
     Application.Run(new FormInicioSesion());
 }
예제 #2
0
        private void BtnAceptar_Click(object sender, EventArgs e)
        {
            if (this.TxtUsuario.Text == "Admin" && TxtPassword.Text == "123")
            {
                Form FormMenu = new formMenu();
                FormMenu.Show();

                /*try
                 * {
                 *  connectionString = "server=localhost;database=empresa_venta_auto;user id=root;password=;";
                 *  connection.ConnectionString = connectionString;
                 *  connection.Open();
                 *
                 *  MessageBox.Show("Conexion Exitosa");
                 * }
                 * catch (MySqlException)
                 * {
                 *  MessageBox.Show("Error de Conexion, :( ");
                 * }*/
            }
        }