Files
KJD_WebService/TEMUKJD/ToolForms/UcSkuImgListItem.cs
T

35 lines
866 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TemuKJD.ToolForms
{
public partial class UcSkuImgListItem : UserControl
{
public UcSkuImgListItem()
{
InitializeComponent();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(pictureBox1.ImageLocation))
{
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.ImageLocation);
imgFrom.ShowDialog();
}
else
{
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.Image);
imgFrom.ShowDialog();
}
}
}
}