private void StoreManage_Load(object sender, EventArgs e) { StoreServerConfiguration sc = StoreServerConfiguration.Load(); this.text_Paths.Text = sc.Paths; chk_oss.Checked = sc.UseOSS == "1"; txtAkID.Text = sc.AccessKeyId; txtAkSecret.Text = sc.AccessKeySecret; txtOssAddress.Text = sc.OssAddress; txtStoreName.Text = sc.StoreName; }
public List <string> GetConfigInfo() { if (ssc == null) { ssc = StoreServerConfiguration.Load(); } List <string> ConfigInfo = new List <string>(); ConfigInfo.Add(ssc.ServiceIP); ConfigInfo.Add(ssc.Status); ConfigInfo.Add(ssc.Paths); return(ConfigInfo); }
public void ReloadConfigureFile() { StoreServerConfiguration.Load(); }