public void resetWindowDisplay(StreamWriter writer) { // Update ini file InitConfig ini = new InitConfig(); if (ini.checkFileExistance(writer)) { ini.Load(writer); InitConfig newIni = new InitConfig(ini.showWindow, false, ini.ACP_ComptaCPT_CompteG); InitConfig x = new InitConfig(); writer.WriteLine(""); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | showWindow : " + ini.showWindow); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | isOpen : false"); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | ACP_ComptaCPT_CompteG : " + ACP_ComptaCPT_CompteG); x.saveInfo(newIni, writer); } else { InitConfig newIni = new InitConfig(5, false); InitConfig x = new InitConfig(); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | showWindow : 5"); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | isOpen : false"); writer.WriteLine(DateTime.Now + " : Dlls.dll => resetWindowDisplay() | ACP_ComptaCPT_CompteG : "); x.saveInfo(newIni, writer); } writer.WriteLine(""); }
public void resetWindowDisplay() { // Update ini file InitConfig ini = new InitConfig(); if (ini.checkFileExistance()) { ini.Load(); InitConfig newIni = new InitConfig(ini.showWindow, false, ini.ACP_ComptaCPT_CompteG); InitConfig x = new InitConfig(); x.saveInfo(newIni); } else { InitConfig newIni = new InitConfig(5, false); InitConfig x = new InitConfig(); x.saveInfo(newIni); } }