protected virtual void OnNewCall(NewCallEvent newCallEvent) { NewCallEventHandler handler = NewCall; if (handler != null) { handler(newCallEvent); } }
void pbxScreenPopup_ScreenPop(HiPathProCenterScreenPopAPILibrary.IScreenPopTelephoneEvent e) { LogError_Siemens.WriteLogError(" NewCall pbxScreenPopup_ScreenPop : " + e.Source, new Exception("")); NewCallEvent newCallEvent = new NewCallEvent() { PhoneNumber = e.Source }; OnNewCall(newCallEvent); }