Esempio n. 1
0
 private void pictureBox15_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         if (strpathname[14] == "")
         {
             return;
         }
         if (e.Button == MouseButtons.Right)
         {
             PreView pv = new PreView();
             pv.PicName = strpathname[14];
             pv.ShowDialog();
         }
         else if (e.Button == MouseButtons.Middle)
         {
             if (MessageBox.Show("确认删除?" + pictureBox15.Tag.ToString(), "此删除不可恢复", MessageBoxButtons.YesNo) == DialogResult.Yes)
             {
                 db.DeleteH_Para("H_tlm", pictureBox15.Tag.ToString());
                 ShowDt(PageInt);
             }
             else
             {
                 return;
             }
         }
     }
     catch { }
 }
Esempio n. 2
0
 private void pictureBox6_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         UserWindows.PreView pv = new UserWindows.PreView();
         pv.PicName = pictureBox6.Tag.ToString();
         pv.ShowDialog();
     }
 }
Esempio n. 3
0
        private void pictureBox9_MouseClick(object sender, MouseEventArgs e)
        {
            try
            {
                if (strpathname[8] == "") return;
                if (e.Button == MouseButtons.Right)
                {
                    PreView pv = new PreView();
                    pv.PicName = strpathname[8];
                    pv.ShowDialog();
                }
                else if (e.Button == MouseButtons.Middle)
                {
                    if (MessageBox.Show("确认删除?" + pictureBox9.Tag.ToString(), "此删除不可恢复", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {

                        db.DeleteH_Para("H_gdc", pictureBox9.Tag.ToString());
                        ShowDt(PageInt);
                    }
                    else return;
                }
            }
            catch { }
        }
Esempio n. 4
0
 private void pictureBox6_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         UserWindows.PreView pv = new UserWindows.PreView();
         pv.PicName = pictureBox6.Tag.ToString();
         pv.ShowDialog();
     }
 }