예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            PalcoNet.Form2 home = new PalcoNet.Form2();

            home.Show();
            this.Close();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            coneccion.Open();
            cambiar             = new SqlCommand("[SQLeados].actualizarContra", coneccion);
            cambiar.CommandType = CommandType.StoredProcedure;
            cambiar.Parameters.Add("@user", SqlDbType.VarChar).Value = Usuario.username;
            cambiar.Parameters.Add("@pass", SqlDbType.VarChar).Value = textBox2.Text;
            cambiar.ExecuteNonQuery();

            String mensaje = "La password se ha cambiado correctamente";
            String caption = "Password cambiada";

            MessageBox.Show(mensaje, caption, MessageBoxButtons.OK);

            PalcoNet.Form2 f2 = new PalcoNet.Form2();
            f2.Show();
            this.Close();
        }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     PalcoNet.Form2 f2 = new PalcoNet.Form2();
     f2.Show();
     this.Close();
 }