Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Hide();
            MyComment comment = new MyComment();

            comment.ShowDialog();
            Close();
        }
Exemple #2
0
        private void deletebtn_Click(object sender, EventArgs e)
        {
            GetConnection();
            string          id      = Login.id;
            DataGridViewRow dr      = dataGridView1.SelectedRows[0];
            string          comment = dr.Cells[3].Value.ToString();
            string          sql     = "delete from comment where comment='" + comment + "'";
            MySqlCommand    cmd     = new MySqlCommand(sql, conn);

            conn.Open();
            cmd.ExecuteNonQuery();
            conn.Close();
            MessageBox.Show("댓글이 삭제되었습니다.");
            Hide();
            MyComment comment1 = new MyComment();

            comment1.ShowDialog();
            Close();
        }