Esempio n. 1
0
        private bool dgvWinLoseRefresh()
        {
            _dgvWinLose[1, 0].Value = "";
            _dgvWinLose[1, 1].Value = "";
            _dgvWinLose[2, 0].Value = "";
            _dgvWinLose[2, 1].Value = "";
            _dgvWinLose[3, 0].Value = "";
            _dgvWinLose[3, 1].Value = "";
            _dgvWinLose[4, 0].Value = "";
            _dgvWinLose[4, 1].Value = "";
            _dgvWinLose[5, 0].Value = "";
            _dgvWinLose[5, 1].Value = "";

            DataTable tbl = Common.dbMatchScoreWinLose();

            if (tbl == null || tbl.Rows.Count < 2)
            {
                return(false);
            }

            _dgvWinLose[1, 0].Value = tbl.Rows[0]["F_PtsWin"].ToString();
            _dgvWinLose[1, 1].Value = tbl.Rows[1]["F_PtsWin"].ToString();
            _dgvWinLose[2, 0].Value = tbl.Rows[0]["F_PtsLose"].ToString();
            _dgvWinLose[2, 1].Value = tbl.Rows[1]["F_PtsLose"].ToString();
            _dgvWinLose[3, 0].Value = tbl.Rows[0]["F_SetsWin"].ToString();
            _dgvWinLose[3, 1].Value = tbl.Rows[1]["F_SetsWin"].ToString();
            _dgvWinLose[4, 0].Value = tbl.Rows[0]["F_SetsLose"].ToString();
            _dgvWinLose[4, 1].Value = tbl.Rows[1]["F_SetsLose"].ToString();
            _dgvWinLose[5, 0].Value = tbl.Rows[0]["F_GroupPoints"].ToString();
            _dgvWinLose[5, 1].Value = tbl.Rows[1]["F_GroupPoints"].ToString();

            return(true);
        }