frmShowPictureBox.cs 699 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. namespace LYFZ.Software.MainBusiness.SystemSettings
  7. {
  8. public class frmShowPictureBox : LYFZ.Software.UI.frmShowPictureBox
  9. {
  10. public string filePath = "";
  11. public frmShowPictureBox()
  12. {
  13. this.Load+=frmShowPictureBox_Load;
  14. }
  15. private void frmShowPictureBox_Load(object sender, EventArgs e)
  16. {
  17. if(!string.IsNullOrEmpty(filePath))
  18. {
  19. //Image img = Image.FromFile();
  20. this.pbImageBox.LoadAsync(filePath);
  21. }
  22. //if(img.w)
  23. }
  24. }
  25. }