FrmImageView.cs 849 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using DevExpress.XtraEditors;
  11. namespace ProjectBase.Controls.DocViewer
  12. {
  13. /// <summary>
  14. /// 图片显示窗体
  15. /// </summary>
  16. public partial class FrmImageView : DevExpress.XtraEditors.XtraForm
  17. {
  18. public FrmImageView()
  19. {
  20. InitializeComponent();
  21. }
  22. private void pictureEdit1_Properties_MouseUp(object sender, MouseEventArgs e)
  23. {
  24. if (e.Button == MouseButtons.Right)
  25. {
  26. this.Close();
  27. }
  28. }
  29. private void btnClose_Click(object sender, EventArgs e)
  30. {
  31. this.Close();
  32. }
  33. }
  34. }