public void SaveToIni() { name = GetName(); CBookList.iniFile.Write($"book>{name}>exe", exe); CBookList.iniFile.Write($"book>{name}>parameters", parameters); CBookList.iniFile.Write($"book>{name}>elo", elo); CBookList.iniFile.Write($"book>{name}>history", hisElo.SaveToStr()); CBookList.iniFile.Write($"book>{name}>tournament", tournament); }
public static void SaveToIni() { FormChess.iniFile.Write("mode>match>rotate", rotate.ToString()); FormChess.iniFile.Write("mode>match>games", games.ToString()); FormChess.iniFile.Write("mode>match>win", win.ToString()); FormChess.iniFile.Write("mode>match>draw", draw.ToString()); FormChess.iniFile.Write("mode>match>loose", loose.ToString()); FormChess.iniFile.Write("mode>match>book1", book1); FormChess.iniFile.Write("mode>match>book2", book2); FormChess.iniFile.Write("mode>match>engine1", engine1); FormChess.iniFile.Write("mode>match>engine2", engine2); FormChess.iniFile.Write("mode>match>mode1", modeValue1.mode); FormChess.iniFile.Write("mode>match>mode2", modeValue2.mode); FormChess.iniFile.Write("mode>match>value1", modeValue1.value); FormChess.iniFile.Write("mode>match>value2", modeValue2.value); FormChess.iniFile.Write("mode>match>his", his.SaveToStr()); }
public void SaveToIni() { name = GetName(); if (hisElo.list.Count == 0) { int e = GetElo(); hisElo.Add(e); hisElo.Add(e); } CEngineList.iniFile.Write($"engine>{name}>tournament", tournament); CEngineList.iniFile.Write($"engine>{name}>modeStandard", modeStandard); CEngineList.iniFile.Write($"engine>{name}>file", file); CEngineList.iniFile.Write($"engine>{name}>protocol", CData.ProtocolToStr(protocol)); CEngineList.iniFile.Write($"engine>{name}>parameters", parameters); CEngineList.iniFile.Write($"engine>{name}>options", options); CEngineList.iniFile.Write($"engine>{name}>elo", elo); CEngineList.iniFile.Write($"engine>{name}>history", hisElo.SaveToStr()); }
public void SaveToIni() { name = GetName(); if (hisElo.list.Count == 0) { int e = GetElo(); hisElo.Add(e); hisElo.Add(e); } CPlayerList.iniFile.Write($"player>{name}>tournament", tournament); CPlayerList.iniFile.Write($"player>{name}>engine", engine); CPlayerList.iniFile.Write($"player>{name}>mode", modeValue.mode); CPlayerList.iniFile.Write($"player>{name}>value", modeValue.value); CPlayerList.iniFile.Write($"player>{name}>book", book); CPlayerList.iniFile.Write($"player>{name}>elo", elo); CPlayerList.iniFile.Write($"player>{name}>eloOrg", eloOrg); CPlayerList.iniFile.Write($"player>{name}>history", hisElo.SaveToStr()); }