using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; namespace ProjectBase.Controls.DocViewer { /// /// 图片显示窗体 /// public partial class FrmImageView : DevExpress.XtraEditors.XtraForm { public FrmImageView() { InitializeComponent(); } private void pictureEdit1_Properties_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { this.Close(); } } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } } }