Пример #1
0
        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");
        }
Пример #2
0
        public NumberRequests()
        {
            InitializeComponent();
            ConfigIni con = new ConfigIni("Resources/Configure.ini");

            txtNumberRequests.Text = con.GetStringValue("NumberRequests");
        }
Пример #3
0
        public UrlConfig()
        {
            InitializeComponent();
            ConfigIni con = new ConfigIni("Resources/Configure.ini");

            txtUrlConfig.Text = con.GetStringValue("Url");
        }
Пример #4
0
        public Timing()
        {
            InitializeComponent();
            ConfigIni con = new ConfigIni("Resources/Configure.ini");

            txtTiming.Text = con.GetStringValue("Timing");
        }
Пример #5
0
 /// <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)));
     }
 }