Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();

            TypeDescriptorHelper.RegistMetadata <ProductNewProduct, ProductNewProductMetadata>();

            this.LoadMethods();
            this.cmbMethods.SelectedIndexChanged += cmbMethods_SelectedIndexChanged;
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            this.dgDestAccounts.DataSource = this.DestAccounts;
            var logger = this.Logger;

            TypeDescriptorHelper.SetNotBrowserableForComplexProperty <DestAccount>();
            TypeDescriptorHelper.MappingSubLevelProperty <DestAccount>(a => a.ProductGroup.Name, a => a.FrightTemplate.Name);
            TypeDescriptorHelper.RegistMetadata <Product, ProductMetadata>();
        }