Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void ReloadConfigureFile()
 {
     StoreServerConfiguration.Load();
 }