public bool SaveCheckBoxAndID(string inifilepath, string ischeckbox, string loginid) { try { INIControlor ic = new INIControlor(inifilepath); ic.SetIniValue("ETC", "checkbox", ischeckbox); ic.SetIniValue("ETC", "loginid", loginid); checkbox_ = Convert.ToInt32(ischeckbox); loginid_ = loginid; } catch { return(false); } return(true); }
public bool UpdateCrawlerINI(string inifilepath, Int32 Auth, Int32 ChannelSeq, Int32 CrawlerSeq , Int32 mode) { try { INIControlor ic = new INIControlor(inifilepath); bUpdate_ = ic.SetIniValue("ETC", "authorityseq", Auth.ToString()); bUpdate_ = ic.SetIniValue("Crawler", "uid", CrawlerSeq.ToString()); bUpdate_ = ic.SetIniValue("ETC", "channelseq", ChannelSeq.ToString()); bUpdate_ = ic.SetIniValue("ETC", "channelidx", ChannelSeq.ToString()); bUpdate_ = ic.SetIniValue("Crawler", "mode", mode.ToString()); } catch { bUpdate_ = false; return(false); } bUpdate_ = true; return(true); }
public bool UpdateMonitorSeq(string inifilepath, Int32 MonitorSeq) { try { INIControlor ic = new INIControlor(inifilepath); ic.SetIniValue("Checker", "MonitorSeq", MonitorSeq.ToString()); MonitorSeq_ = MonitorSeq; } catch { return(false); } return(true); }