/// <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); } } }
static CaseManager() { Casehandle += new CaseEventHandle(ProcessCase); }