private void button4_Click(object sender, EventArgs e) { Hide(); AdminMyHome myhome = new AdminMyHome(); myhome.ShowDialog(); Close(); }
private void button2_Click_1(object sender, EventArgs e) { GetConnection(); string sql = "update user set passwd='" + passwdtxt.Text + "',name='" + nametxt.Text + "',email='" + emailtxt.Text + "' where id='" + idtxt.Text + "'"; MySqlCommand cmd = new MySqlCommand(sql, conn); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); MessageBox.Show("정보가 수정되었습니다."); Hide(); AdminMyHome myhome = new AdminMyHome(); myhome.ShowDialog(); Close(); }