private void OnLoadData() { ConfigIni con = new ConfigIni("Resources/Configure.ini"); txtTime.Text = con.GetStringValue("Timing"); txtUrl.Text = con.GetStringValue("Url"); txtNumber.Text = con.GetStringValue("NumberRequests"); }
public NumberRequests() { InitializeComponent(); ConfigIni con = new ConfigIni("Resources/Configure.ini"); txtNumberRequests.Text = con.GetStringValue("NumberRequests"); }
public UrlConfig() { InitializeComponent(); ConfigIni con = new ConfigIni("Resources/Configure.ini"); txtUrlConfig.Text = con.GetStringValue("Url"); }
public Timing() { InitializeComponent(); ConfigIni con = new ConfigIni("Resources/Configure.ini"); txtTiming.Text = con.GetStringValue("Timing"); }
/// <summary> /// 获取自动更新数据 /// </summary> /// <param name="context"></param> /// <returns></returns> private string AutoUpdate(HttpContext context) { try { string configFile = HttpContext.Current.Server.MapPath("~/Version/VersionConfig.ini"); ConfigIni conIni = new ConfigIni(configFile); return("{\"appid\":\"" + conIni.GetStringValue("appid") + "\",\"title\":\"" + conIni.GetStringValue("title") + "\",\"note\":\"" + conIni.GetStringValue("note") + "\",\"version\":\"" + conIni.GetStringValue("version") + "\",\"url\":\"" + conIni.GetStringValue("url") + "\"}"); } catch (Exception ex) { SystemErrorPlug.ErrorRecord(ex.ToString()); return(JsonHelper <Messaging <string> > .EntityToJson(new Messaging <string>("500", ex.Message))); } }