private void frmCreatConcertreCipeByItem_Load(object sender, System.EventArgs e) { bool m_blnCreat = false; ((clsCtl_CreatConcertreCipeByItem)this.objController).m_mthCalMoney(); clsDomainConrol_ConcertreCipe doMain = new clsDomainConrol_ConcertreCipe(); doMain.m_lngGetPublic(this.LoginInfo.m_strEmpID, out m_blnCreat); if (!m_blnCreat) { ra_dep.Enabled = false; ra_public.Enabled = false; } Application.Idle += new EventHandler(Application_Idle); }