Exemple #1
0
        private void btnRegresar_Click(object sender, EventArgs e)
        {
            WinnerPet form1 = new WinnerPet();

            form1.Visible = true;
            this.Close();
        }
Exemple #2
0
        private void btnMenu_Click(object sender, EventArgs e)
        {
            WinnerPet Principal = new WinnerPet();

            Principal.Visible = true;
            this.Close();
        }
Exemple #3
0
        private void btnRegresar_Click(object sender, EventArgs e)
        {
            WinnerPet Principal = new WinnerPet();

            Principal.Show();
            this.Close();
        }
Exemple #4
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     guardarUsuario = txtUser.Text;
     try
     {
         cn = new SqlConnection("Data Source=localhost;Initial Catalog=WinnerPet;Persist Security Info=True;User ID='" + txtUser.Text + "';Password='******'");
         cn.Open();
         WinnerPet principal = new WinnerPet();
         this.Visible = false;
         principal.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("No se conecto con la base de datos: " + ex.ToString());
     }
 }