/******************************************************************************* * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential * 类的信息: * 1.程序名称:DKButton.cs * 2.功能描述:扩展的按钮控件:便于修改背景颜色及字体、颜色 * 编辑履历: * 作者 日期 版本 修改内容 * 陈晓野 2014/08/13 1.00 新建 *******************************************************************************/ using System.Windows.Forms; namespace Dongke.IBOSS.PRD.Basics.BaseControls { /// /// 扩展的按钮控件 /// public abstract partial class DKButton : Button, IDKControl { #region 成员变量 // 异步处理开始时,控件状态 private bool _beginAsyncStatus; #endregion #region 控件构造函数 public DKButton() { InitializeComponent(); this.Font = ControlsConst.FONT_SYSTEM_DEFAULT; } #endregion #region 控件属性 #endregion #region 公有方法 /// /// 异步处理开始 /// public void BeginAsync() { this._beginAsyncStatus = this.Enabled; this.Enabled = false; } /// /// 异步处理结束 /// public void EndAsync() { this.Enabled = this._beginAsyncStatus; } #endregion } }