public void SetCompleteState(int i_runId, bool i_state) { INIFile tnIni = new INIFile(Tournament.iniPath); Const.SetIniTimeStamp(tnIni); if (Const.CheckIdInRange(tnIni, Tournament.tnmtSec, Tournament.tnS_tnmtRunCnt, i_runId)) { string strId = Convert.ToString(i_runId); tnIni.SetValue(Tournament.runSec + strId, Tournament.rS_runComplete, Convert.ToString(i_state)); Log.Info("Run " + Convert.ToString(i_runId) + " completed"); } else { Log.Error("Run-SetCompleteState input Id " + i_runId + " out of Range!"); } }
public void Getter(int i_id) { INIFile gIni = new INIFile(iniPath); if (Const.CheckIdInRange(gIni, Const.fileSec, fsX_gameCnt, i_id)) { string strId = Convert.ToString(i_id); gameId = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_gameId)); gameTeams[0] = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_gameTeam1)); gameTeams[1] = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_gameTeam2)); gamePoints[0] = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_gamePointsTeam1)); gamePoints[1] = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_gamePointsTeam2)); dpndRun = Convert.ToInt32(gIni.GetValue(gameSec + strId, gS_dpndRun)); } else { Log.Error("Game-Getter input Id " + i_id + " out of Range!"); } }
public void Getter(int i_id) { INIFile sutIni = new INIFile(iniPath); if (Const.CheckIdInRange(sutIni, Const.fileSec, fsX_suTeamCnt, i_id)) { suTeamId = i_id; string strId = Convert.ToString(i_id); suTeamName = sutIni.GetValue(suTeamSec + strId, sutS_suTName); suTeamPlayerFirstNames[0] = sutIni.GetValue(suTeamSec + strId, sutS_suTPlayer1Firstname); suTeamPlayerFirstNames[1] = sutIni.GetValue(suTeamSec + strId, sutS_suTPlayer2Firstname); suTeamPlayerLastNames[0] = sutIni.GetValue(suTeamSec + strId, sutS_suTPlayer1Lastname); suTeamPlayerLastNames[1] = sutIni.GetValue(suTeamSec + strId, sutS_suTPlayer2Lastname); } else { Log.Error("Team-Getter input Id " + i_id + " out of Range!"); } }
public void Getter(int i_id) { INIFile tIni = new INIFile(iniPath); if (Const.CheckIdInRange(tIni, fileSec, fsX_teamCnt, i_id)) { teamId = i_id; string strId = Convert.ToString(i_id); teamName = tIni.GetValue(teamSec + strId, tS_teamName); teamPlayer[0] = Convert.ToInt32(tIni.GetValue(teamSec + strId, tS_player1Id)); teamPlayer[1] = Convert.ToInt32(tIni.GetValue(teamSec + strId, tS_player2Id)); winPoints = Convert.ToInt32(tIni.GetValue(teamSec + strId, tS_winPoints)); gamePointsTotal = Convert.ToInt32(tIni.GetValue(teamSec + strId, tS_gamePointsTotal)); gamePointsTotalDiff = Convert.ToInt32(tIni.GetValue(teamSec + strId, tS_gamePointsTotalDiff)); } else { Log.Error("Team-Getter input Id " + i_id + " out of Range!"); } }
public void Getter(int i_id) { INIFile tnIni = new INIFile(Tournament.iniPath); if (i_id != 0) { if (Const.CheckIdInRange(tnIni, Tournament.tnmtSec, Tournament.tnS_tnmtRunCnt, i_id)) { runId = Convert.ToInt32(tnIni.GetValue(Tournament.runSec + i_id, Tournament.rS_runId)); tableCnt = Convert.ToInt32(tnIni.GetValue(Tournament.runSec + runId, Tournament.rS_tableCnt)); completeState = Convert.ToBoolean(tnIni.GetValue(Tournament.runSec + runId, Tournament.rS_runComplete)); } else { Log.Error("Run-Getter input Id " + i_id + " out of Range!"); } } else { completeState = true; } }