Example #1
0
        /// <summary>
        /// 查看图片
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            string pictureCode = this.textBox6.Text.Trim();

            DoTask(() => {
                Image img = PH.GetImageByPapdCode(pictureCode);

                var frm = new FrmViewPic(img);
                frm.ShowDialog();
                frm.Dispose();
            }, "查看图片失败", true);
        }
Example #2
0
        /// <summary>
        /// 查看图片
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 查看图片ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.listView1.SelectedItems.Count < 1)
            {
                return;
            }

            var item     = this.listView1.SelectedItems[0];
            var itemInfo = item.Tag as PajkGetDepotResultItem;

            DoTask(() => {
                Image img = base.PH.GetImageByPapdCode(itemInfo.Img);
                var frm   = new FrmViewPic(img);
                frm.ShowDialog();
            }, "查看图片失败");
        }