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(); } } }
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(); } } }
/// <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(); } } }