/// <summary> /// 双击打开form2看大图 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pictureBox1_DoubleClick(object sender, EventArgs e) { Form2 fm2 = new WindowsFormsApplication1.Form2(); fm2.PicPath = pathArray[listView1.SelectedItems[0].Index]; fm2.Show(); }
private void button4_Click(object sender, EventArgs e) { WindowsFormsApplication1.Form2 home = new WindowsFormsApplication1.Form2(); home.Show(); this.Close(); }
private void button2_Click(object sender, EventArgs e) { coneccion.Open(); cambiar = new SqlCommand("PERSISTIENDO.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); WindowsFormsApplication1.Form2 f2 = new WindowsFormsApplication1.Form2(); f2.Show(); this.Close(); }
private void botonVolver_Click(object sender, EventArgs e) { WindowsFormsApplication1.Form2 form2 = new WindowsFormsApplication1.Form2(); form2.Show(); this.Close(); }