void LoadParams() { IniUtility.FilePath = System.AppDomain.CurrentDomain.BaseDirectory + "\\set.ini"; m_strRef = IniUtility.GetIniKeyValue("set", "ref", "amb_link_31233252_2"); m_strdocId = IniUtility.GetIniKeyValue("set", "docid", "146308"); m_strgpid = IniUtility.GetIniKeyValue("set", "gpid", "1"); m_strTempUrl = IniUtility.GetIniKeyValue("set", "url", ""); string strCheck = "1"; m_bSuspendFresh = false; //checkFresh.Checked = true; if (strCheck == "1") { listView.Height = this.ClientRectangle.Height - 80 - listBoxInfo.Height - 10; listBoxInfo.Visible = true; checkShowLog.Checked = true; } #if __PAOPAO this.Text = "泡泡网刷新程序"; #endif #if DEBUG #else button1.Visible = false; #endif }
void SaveParams() { return; IniUtility.FilePath = System.AppDomain.CurrentDomain.BaseDirectory + "\\set.ini"; IniUtility.WriteIniKey("set", "freshtime", m_iGetPage.ToString()); IniUtility.WriteIniKey("set", "freshinterval", m_iRefreshInterval.ToString()); IniUtility.WriteIniKey("set", "freshstart", m_strStartTime); IniUtility.WriteIniKey("set", "freshend", m_strEndTime); IniUtility.WriteIniKey("set", "freshtype", m_iFreshType.ToString()); IniUtility.WriteIniKey("set", "showlog", checkShowLog.Checked == true?"1":"0"); IniUtility.WriteIniKey("set", "threadnum", m_iThreadCount.ToString()); }