Esempio n. 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (txtIMGid.Text.Equals(""))
            {
                picImage.Image = null;
            }
            else
            {
                if (ss.Equals("ShowQManag"))
                {
                    int delImage = ClassQute.deleteQuteImg(int.Parse(txtIMGid.Text));
                    dt = ClassQute.selectimgforQute(DocID);

                    MessageBox.Show("Done . .");
                    txtIMGid.Text  = "";
                    picImage.Image = null;
                }
                else if (ss.Equals("ShowOManag"))
                {
                    int delImage = ClassOrder.deleteImgForOrder(int.Parse(txtIMGid.Text));
                    dt = ClassOrder.selectImgOrder(DocID);

                    MessageBox.Show("Done . .");
                    txtIMGid.Text  = "";
                    picImage.Image = null;
                }
            }
            numOfImag = dt.Rows.Count;
            btnFirstIMG_Click(null, null);
        }