public frmBusynessForm(string p_strMessage) { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); enmClosingStatus = EnmClosingStatus.正常; m_lblMessage.Text = p_strMessage; }
private void frmBusynessForm_Activated(object sender, System.EventArgs e) { if (BusynessEvent != null && m_blnIsExecute == false) { timer1.Start(); args = new BusynessEventArgs(ref m_strMessages, ref m_strEndMessage, ref m_blnClosing); BusynessEvent(this, args); m_strEndMessage = args.EndMessage; enmClosingStatus = (args.Closing?EnmClosingStatus.成功:EnmClosingStatus.失败); m_blnIsExecute = true; } }