コード例 #1
0
        private void childClose(object sender, EventArgs e)
        {
            BrandAdd ba    = (BrandAdd)sender;
            Brand    brand = ba.brand;

            string tag = (string)this.Tag;

            if (tag.Equals(tag_insert))
            {
                dao.addBrand(brand);
            }
            else
            {
                dao.updateBrand(brand);
            }

            initData();
        }