public static void ProfileEvent(object sender, ProfileEventEnum profileEventType, GenericPanelBinding genericPanelBinding, DCSFPProfile dcsfpProfile) { OnProfileEvent?.Invoke(sender, new ProfileEventArgs { PanelBinding = genericPanelBinding, ProfileEventType = profileEventType, DCSProfile = dcsfpProfile }); }
public static bool OnProfileEventSubscribed() { return(OnProfileEvent != null && OnProfileEvent.GetInvocationList().Length > 0); }