Beispiel #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="baseCase"></param>
        public static void Add(BaseCase baseCase)
        {
            var args = new CaseEventArgs() { Case = baseCase };

            CaseEventHandle temp = Casehandle;
            if (temp != null)
            {
                foreach (CaseEventHandle handler in temp.GetInvocationList())
                {
                    handler.BeginInvoke(null, args, new AsyncCallback(EndAsync), null);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="baseCase"></param>
        public static void Add(BaseCase baseCase)
        {
            var args = new CaseEventArgs()
            {
                Case = baseCase
            };

            CaseEventHandle temp = Casehandle;

            if (temp != null)
            {
                foreach (CaseEventHandle handler in temp.GetInvocationList())
                {
                    handler.BeginInvoke(null, args, new AsyncCallback(EndAsync), null);
                }
            }
        }