Пример #1
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            decimal regionPrice;
            decimal regionAddPrice;

            if (!this.ValidateValues(out regionPrice, out regionAddPrice))
            {
                return;
            }
            AddShippingTemplate.Region region = new AddShippingTemplate.Region();
            region.RegionsId      = this.txtRegion_Id.Text;
            region.Regions        = this.txtRegion.Value;
            region.RegionPrice    = regionPrice;
            region.RegionAddPrice = regionAddPrice;
            this.RegionList.Add(region);
            this.BindRegion();
            this.txtRegion_Id.Text      = string.Empty;
            this.txtRegion.Value        = string.Empty;
            this.txtRegionPrice.Text    = "0";
            this.txtAddRegionPrice.Text = "0";
        }
Пример #2
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            decimal num;
            decimal num2;

            if (this.ValidateValues(out num, out num2))
            {
                AddShippingTemplate.Region item = new AddShippingTemplate.Region
                {
                    RegionsId      = this.txtRegion_Id.Text,
                    Regions        = this.txtRegion.Value,
                    RegionPrice    = num,
                    RegionAddPrice = num2
                };
                this.RegionList.Add(item);
                this.BindRegion();
                this.txtRegion_Id.Text      = string.Empty;
                this.txtRegion.Value        = string.Empty;
                this.txtRegionPrice.Text    = "0";
                this.txtAddRegionPrice.Text = "0";
            }
        }