コード例 #1
0
ファイル: Home.cs プロジェクト: hmpark410/community
        private void button1_Click(object sender, EventArgs e)
        {
            Hide();
            MyHome myhome = new MyHome();

            myhome.ShowDialog();
            Close();
        }
コード例 #2
0
        private void button2_Click(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("정보가 수정되었습니다.");
            this.Hide();
            MyHome myhome = new MyHome();

            myhome.ShowDialog();
            this.Close();
        }