Exemplo n.º 1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            DialogResult m;

            m = MessageBox.Show("آیا از حذف تصویر هنرجو اطمینان دارید ؟ ", "تایید", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (m == DialogResult.Yes)
            {
                std st = new std();
                st.stdno = txtstdno.Text;
                st.Updateforpic();
                ShowPosition();
            }
        }
Exemplo n.º 2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            DialogResult m;

            m = MessageBox.Show("آیا از حذف تصویر هنرجو اطمینان دارید ؟ ", "تایید", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (m == DialogResult.Yes)
            {
                //objCommand.CommandText = "update letter set let_img=NULL WHERE id='" + idtxt.Text.Trim() + "'";
                //objCommand.ExecuteNonQuery();
                std st = new std();

                st.stdno = txtstdno.Text;
                st.Updateforpic();
                ShowPosition();
            }
        }