public bool loadConfig(out object obj) //設定ファイル読み込み { configure conf = new configure(); bool result = XmlFileIO.xmlLoad(conf.GetType(), getFilename(), out obj); logOutput.writeLog("設定ファイルを読み込みました。"); return(result); }
public bool saveConfig() //設定ファイル保存 { configure conf = new configure(); conf.url = service.getUrl(); conf.rodos = bot.rodos; conf.chp = bot.chp; conf.xmlFile = chpFile; bool result = XmlFileIO.xmlSave(conf.GetType(), getFilename(), conf); logOutput.writeLog("設定ファイルを保存しました。"); return(true); }