// // Copyright (c) PlaceholderCompany. All rights reserved. // using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; namespace PcgDrawR { /// /// The frm about. /// public partial class FrmAbout : DevExpress.XtraEditors.XtraForm { /// /// Initializes a new instance of the class. /// public FrmAbout() { InitializeComponent(); } //protected override void WndProc(ref Message m) //{ // Trace.WriteLine(m.Msg); // switch (m.Msg) // { // case 0x0201://WM_LBUTTONDOWN // { // return; // } // case 0x0202://WM_LBUTTONUP // { // return; // } // case 0x0203://WM_LBUTTONDBLCLK // { // this.Close(); // return; // } // case 0x0204://WM_RBUTTONDOWN // { // return; // } // case 0x0205://WM_RBUTTONUP // { // return; // } // case 0x0206://WM_RBUTTONDBLCLK // { // return; // } // } // base.WndProc(ref m); //} /// /// Frms the about_ mouse click. /// /// The sender. /// The e. private void FrmAbout_MouseClick(object sender, MouseEventArgs e) { this.Close(); } /// /// Frms the about_ load. /// /// The sender. /// The e. private void FrmAbout_Load(object sender, EventArgs e) { if (Owner != null && this.StartPosition == FormStartPosition.CenterParent) { Location = new Point( Owner.Location.X + (Owner.Width / 2) - (Width / 2), Owner.Location.Y + (Owner.Height / 2) - (Height / 2)); } lblVersion.Text = $"版本号:{System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()}"; } /// /// Frms the about_ deactivate. /// /// The sender. /// The e. private void FrmAbout_Deactivate(object sender, EventArgs e) { this.Close(); } /// /// Frms the about_ leave. /// /// The sender. /// The e. private void FrmAbout_Leave(object sender, EventArgs e) { this.Close(); } } }