Ejemplo n.º 1
0
 private void btn_save_ver_Click(object sender, EventArgs e)
 {
     Config.Product product = new Config.Product();
     product.ProductName   = txt_product_name.Text;
     product.ProjectDir    = txt_proj_dir.Text;
     product.ResourceDir   = txt_res_dir.Text;
     product.UpdateConfDir = txt_hotupdate_conf.Text;
     product.BackDir       = txt_bk_dir.Text;
     product.BaseVer       = txt_online_ver.Text;
     Config.AddProduct(product);
     Config.SaveToFile();
 }
Ejemplo n.º 2
0
        private void cmb_product_SelectedIndexChanged(object sender, EventArgs e)
        {
            string product_name = cmb_product.SelectedItem.ToString();

            Config.Product product = Config.GetProductByName(product_name);
            txt_hotupdate_conf.Text = product.UpdateConfDir;
            txt_bk_dir.Text         = product.BackDir;
            txt_online_ver.Text     = product.BaseVer;
            txt_product_name.Text   = product_name;
            txt_proj_dir.Text       = product.ProjectDir;
            txt_res_dir.Text        = product.ResourceDir;
        }