Query_ShowPicture.cs 668 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using UAS_MES.PublicMethod;
  10. namespace UAS_MES.Query
  11. {
  12. public partial class Query_ShowPicture : Form
  13. {
  14. string type = "";
  15. public Query_ShowPicture(string FileType)
  16. {
  17. InitializeComponent();
  18. StartPosition = FormStartPosition.CenterScreen;
  19. type = FileType;
  20. }
  21. private void Query_ShowPicture_Load(object sender, EventArgs e)
  22. {
  23. PicBox.Image = Image.FromFile(type);
  24. }
  25. }
  26. }