Beispiel #1
0
 public frmOVRWPPenaltyScore(ref OVRWPMatchInfo cMatchInfo)
 {
     InitializeComponent();
     m_CCurMatch = cMatchInfo;
     m_CurAction.Init();
     m_MatchID = GVAR.Str2Int(m_CCurMatch.MatchID);
     m_iMatchPenaltySplitID = GVAR.g_ManageDB.GetMatchSplitID(m_MatchID, GVAR.PERIOD_PSO);
     if (m_iMatchPenaltySplitID <= 0)
     {
         m_iMatchPenaltySplitID = GVAR.g_ManageDB.AddSplitMatch(ref m_CCurMatch, GVAR.PERIOD_PSO.ToString());
     }
     else
     {
         m_iHomePScore  = GVAR.g_ManageDB.GetSplitScore(m_MatchID, m_iMatchPenaltySplitID, 1);
         m_iVisitPScore = GVAR.g_ManageDB.GetSplitScore(m_MatchID, m_iMatchPenaltySplitID, 2);
     }
 }
Beispiel #2
0
        public void CreateActionXml(OVRWPMatchInfo tmpMatch, int iGKID)
        {
            if (!m_bActionComplete)
            {
                return;
            }

            if (m_emActionType == EActionType.emShot)
            {
                m_strActionDes    = m_strActionDetailDes1 + m_strActionDetailDes2;
                m_strActionDetail = m_strActionDetail1 + m_strActionDetail2;

                CreateShotXml(iGKID);
            }
            else if (m_emActionType == EActionType.emPStat || m_emActionType == EActionType.emTStat)
            {
                m_strActionDes    = m_strActionDetailDes3;
                m_strActionDetail = m_strActionDetail1 + m_strActionDetail3;

                CreateStatXml();
            }
        }
Beispiel #3
0
 public void InitAction(OVRWPMatchInfo tmpMatch, int iMatchSplitID)
 {
     m_iMatchID      = GVAR.Str2Int(tmpMatch.MatchID);
     m_iMatchSplitID = iMatchSplitID;
 }