Example #1
0
        private void btnx_Game_Result_Click(object sender, EventArgs e)
        {
            if (m_nCurSetOffset < 0)
            {
                return;
            }

            frmModifyResult frmMatchResult = new frmModifyResult(m_nCurMatchID, m_nCurSetID);

            frmMatchResult.ShowDialog();

            GetSetsTotalWriteToDB();
            EnableGamesRbtn(true, false);
            EnableGameDetail(true, false);
            SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emMatchResult, -1, -1, -1, m_nCurMatchID, m_nCurMatchID, null);
        }
Example #2
0
        private void btnx_Modify_Result_Click(object sender, EventArgs e)
        {
            frmModifyResult frmMatchResult = new frmModifyResult(m_nCurMatchID, -1);

            frmMatchResult.ShowDialog();

            String strHomeSet, strAwaySet;

            if (SQCommon.g_ManageDB.GetContestResult(m_nCurMatchID, out strHomeSet, out strAwaySet))
            {
                lb_Home_Score.Text = strHomeSet.Equals("") ? "0" : strHomeSet;
                lb_Away_Score.Text = strAwaySet.Equals("") ? "0" : strAwaySet;

                if (m_nCurStatusID == SQCommon.STATUS_RUNNING || m_nCurStatusID == SQCommon.STATUS_REVISION)
                {
                    UpdateSetsResult(true);
                }
            }

            SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emMatchResult, -1, -1, -1, m_nCurMatchID, m_nCurMatchID, null);
        }
Example #3
0
        private void btnx_SubMatch_Result_Click(object sender, EventArgs e)
        {
            if (m_nCurSplitOffset < 0)
            {
                return;
            }

            frmModifyResult frmMatchResult = new frmModifyResult(m_nCurMatchID, m_nCurTeamSplitID);

            frmMatchResult.ShowDialog();

            String strGameTotalA, strGameTotalB;

            if (SQCommon.g_ManageDB.GetTeamSplitResult(m_nCurMatchID, m_nCurTeamSplitID, out strGameTotalA, out strGameTotalB))
            {
                lb_A_GameTotal.Text = strGameTotalA.Equals("") ? "0" : strGameTotalA;
                lb_B_GameTotal.Text = strGameTotalB.Equals("") ? "0" : strGameTotalB;

                UpdateSetTotalResult();
                EnableMatchCtrlBtn(true);
            }

            SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emMatchResult, -1, -1, -1, m_nCurMatchID, m_nCurMatchID, null);
        }