private void m_dgvAccountData_DoubleClick(object sender, EventArgs e) { clsMS_AccountPeriodVO objAP = ((clsCtl_AccountPeriod)objController).m_objGetAccount(); if (objAP == null) { return; } frmAccount frmAcc = new frmAccount(m_strStorageID, objAP); frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed); frmAcc.ShowDialog(); }
private void m_cmdAccount_Click(object sender, EventArgs e) { DateTime dtmBeginDate = ((clsCtl_AccountPeriod)objController).m_dtmGetBeginDate(); if (dtmBeginDate == DateTime.MinValue) { MessageBox.Show("获取帐务期结转开始时间失败", "帐务期结转", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } frmAccount frmAcc = new frmAccount(m_strStorageID, dtmBeginDate); frmAcc.FormClosed += new FormClosedEventHandler(frmAcc_FormClosed); frmAcc.ShowDialog(); }