1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- // ***********************************************************************
- // Assembly : HZH_Controls
- // Created : 08-08-2019
- //
- // ***********************************************************************
- // <copyright file="FrmBack.cs">
- // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
- // </copyright>
- //
- // Blog: https://www.cnblogs.com/bfyx
- // GitHub:https://github.com/kwwwvagaa/NetWinformControl
- // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
- //
- // If you use this code, please keep this note.
- // ***********************************************************************
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace HZH_Controls.Forms
- {
- /// <summary>
- /// Class FrmBack.
- /// Implements the <see cref="HZH_Controls.Forms.FrmBase" />
- /// </summary>
- /// <seealso cref="HZH_Controls.Forms.FrmBase" />
- [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(System.ComponentModel.Design.IDesigner))]
- public partial class FrmBack : FrmBase
- {
- /// <summary>
- /// The FRM title
- /// </summary>
- private string _frmTitle = "自定义窗体";
- /// <summary>
- /// 窗体标题
- /// </summary>
- /// <value>The FRM title.</value>
- [Description("窗体标题"), Category("自定义")]
- public string FrmTitle
- {
- get { return _frmTitle; }
- set
- {
- _frmTitle = value;
- btnBack1.BtnText = " " + value;
- }
- }
- /// <summary>
- /// Occurs when [BTN help click].
- /// </summary>
- [Description("帮助按钮点击事件"), Category("自定义")]
- public event EventHandler BtnHelpClick;
- /// <summary>
- /// Initializes a new instance of the <see cref="FrmBack" /> class.
- /// </summary>
- public FrmBack()
- {
- InitializeComponent();
- InitFormMove(this.panTop);
- }
- /// <summary>
- /// Handles the btnClick event of the btnBack1 control.
- /// </summary>
- /// <param name="sender">The source of the event.</param>
- /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
- private void btnBack1_btnClick(object sender, EventArgs e)
- {
- this.Close();
- }
- /// <summary>
- /// Handles the MouseDown event of the label1 control.
- /// </summary>
- /// <param name="sender">The source of the event.</param>
- /// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param>
- private void label1_MouseDown(object sender, MouseEventArgs e)
- {
- if (BtnHelpClick != null)
- BtnHelpClick(sender, e);
- }
- }
- }
|