private void DispatchEvent(int iEventID, params object[] args) { try { OnPanelUIEvent?.Invoke(iEventID, args); } catch (Exception ex) { SystemLogger.Log(LGCNS.ezControl.Diagnostics.Level.Exception, ex, this.Name); } }
protected override void OnLinkedReferenceStateChanged(LGCNS.ezControl.Core.CReference refer, LGCNS.ezControl.Common.enumReferenceState state) { base.OnLinkedReferenceStateChanged(refer, state); if (refer.ReferenceState == LGCNS.ezControl.Common.enumReferenceState.Active) { OnPanelUIEvent?.Invoke((int)CEnum2.EnumToUIEvent.Connected, null); } else if (refer.ReferenceState == LGCNS.ezControl.Common.enumReferenceState.Fault) { OnPanelUIEvent?.Invoke((int)CEnum2.EnumToUIEvent.Disconnected, null); } }
protected override void OnReferenceLinked(LGCNS.ezControl.Core.CReference reference) { base.OnReferenceLinked(reference); if (reference.ReferenceState == LGCNS.ezControl.Common.enumReferenceState.Active) { OnPanelUIEvent?.Invoke((int)BaseEnumClass.EnumToUIEvent.Connected, null); } else if (reference.ReferenceState == LGCNS.ezControl.Common.enumReferenceState.Fault) { OnPanelUIEvent?.Invoke((int)BaseEnumClass.EnumToUIEvent.Disconnected, null); } }