public void DataChangedNotify(OVRDataChangedType emType) { if (this.Plugin2MgrEvent != null) { OVRDataChangedNotifyArgs oArgs = new OVRDataChangedNotifyArgs(); oArgs.ChangedList.Add(new OVRDataChanged(emType, -1, -1, -1, -1, null, null)); this.Plugin2MgrEvent(this, new OVRPlugin2MgrEventArgs(OVRPlugin2MgrEventType.emDataEntry, oArgs)); } }
private string m_strData; // Actual Data Changed public OVRDataChanged() { m_emDataChangedType = OVRDataChangedType.emUnknown; m_iDisciplineID = -1; m_iEventID = -1; m_iPhaseID = -1; m_iMatchID = -1; m_oID = null; m_strData = null; }
public void DataChangedNotify(OVRDataChangedType emType, int iDisciplineID, int iEventID, int iPhaseID, int iMatchID, object oID, string strData) { if (this.Module2FrameEvent != null) { OVRDataChangedNotifyArgs oArgs = new OVRDataChangedNotifyArgs(); oArgs.ChangedList.Add(new OVRDataChanged(emType, iDisciplineID, iEventID, iPhaseID, iMatchID, oID, strData)); this.Module2FrameEvent(this, new OVRModule2FrameEventArgs(OVRModule2FrameEventType.emDataChanged, oArgs)); } }
public void Unsignal(OVRDataChangedType emType) { int iIndex = System.Convert.ToInt32(emType); if (iIndex < 0 || iIndex >= m_nCapacity) { return; } m_lstDataChangedType[iIndex] = false; }
public bool IsSignaled(OVRDataChangedType emType) { int iIndex = System.Convert.ToInt32(emType); if (iIndex < 0 || iIndex >= m_nCapacity) { return(false); } return(m_lstDataChangedType[iIndex]); }
public OVRDataChanged(OVRDataChangedType type, int iDisciplineID, int iEventID, int iPhaseID, int iMatchID, object oID, string strData) { m_emDataChangedType = type; m_iDisciplineID = iDisciplineID; m_iEventID = iEventID; m_iPhaseID = iPhaseID; m_iMatchID = iMatchID; m_oID = oID; m_strData = strData; }
private string GetDataChangedType(OVRDataChangedType emType) { int iIndex = System.Convert.ToInt32(emType); int iCapacity = System.Convert.ToInt32(OVRDataChangedType.Capacity); if (m_lstDataChangedType == null || iIndex < 0 || iIndex >= iCapacity) { return("Unknown"); } return(m_lstDataChangedType[iIndex]); }
private bool Can_Get_Session_Court_ID(OVRDataChangedType emType) { if (emType == OVRDataChangedType.emMatchAdd || emType == OVRDataChangedType.emMatchDel || emType == OVRDataChangedType.emMatchInfo || emType == OVRDataChangedType.emMatchWeather || emType == OVRDataChangedType.emMatchModel || emType == OVRDataChangedType.emMatchStatus || emType == OVRDataChangedType.emMatchDate || emType == OVRDataChangedType.emMatchResult || emType == OVRDataChangedType.emMatchCompetitor || emType == OVRDataChangedType.emMatchSessionSet || emType == OVRDataChangedType.emMatchSessionReset || emType == OVRDataChangedType.emMatchCourtSet || emType == OVRDataChangedType.emMatchCourtReset) { return(true); } else { return(false); } }