Exemplo n.º 1
0
        private bool CleanMethod()
        {
            try
            {
                if (DataDeal != null)
                {
                    foreach (Delegate odel in DataDeal.GetInvocationList())
                    {
                        DataDeal -= (RFIDDataEventHandler)odel;
                    }
                }
            }
            catch (Exception ex)
            {
                m_strMessage = string.Format("有异常发生:{0}", ex.Message);
                return(false);
            }

            return(true);
        }