コード例 #1
0
        private void picPhoto_Click(object sender, EventArgs e)
        {
            string strIUrl = CommonCtrl.IsNullToString(picPhoto.ImageLocation);

            if (!string.IsNullOrEmpty(strIUrl))
            {
                Image img = FileOperation.DownLoadImage(strIUrl);//图片信息
                if (img != null)
                {
                    BigImage bigimage = new BigImage(img);
                    bigimage.ShowDialog();
                }
            }
        }
コード例 #2
0
        private void picPhoto_Click(object sender, EventArgs e)
        {
            string strIUrl = CommonCtrl.IsNullToString(picPhoto.ImageLocation);

            if (!string.IsNullOrEmpty(strIUrl))
            {
                Image img = null;
                if (wStatus == WindowStatus.Edit || wStatus == WindowStatus.Copy)
                {
                    img = FileOperation.DownLoadImage(strIUrl);//图片信息
                }
                else
                {
                    img = new Bitmap(strIUrl);
                }
                if (img != null)
                {
                    BigImage bigimage = new BigImage(img);
                    bigimage.ShowDialog();
                }
            }
        }
コード例 #3
0
 private void picPhoto_Click(object sender, EventArgs e)
 {
     string strIUrl = CommonCtrl.IsNullToString(picPhoto.ImageLocation);
     if (!string.IsNullOrEmpty(strIUrl))
     {
         Image img = FileOperation.DownLoadImage(strIUrl);//图片信息               
         if (img != null)
         {
             BigImage bigimage = new BigImage(img);
             bigimage.ShowDialog();
         }
     }
 }
コード例 #4
0
 /// <summary>
 /// 图片点击事件 选择图片
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void picuser_Click(object sender, EventArgs e)
 {
     string strIUrl = CommonCtrl.IsNullToString(picuser.ImageLocation);
     if (!string.IsNullOrEmpty(strIUrl))
     {
         Image img = null;
         if (windowStatus == WindowStatus.Edit || windowStatus == WindowStatus.Copy)
         {
             img = FileOperation.DownLoadImage(strIUrl);//图片信息
         }
         else
         {
             img = new Bitmap(strIUrl);
         }
         if (img != null)
         {
             BigImage bigimage = new BigImage(img);
             bigimage.ShowDialog();
         }
     }
 }