public Form1() { InitializeComponent(); TypeDescriptorHelper.RegistMetadata <ProductNewProduct, ProductNewProductMetadata>(); this.LoadMethods(); this.cmbMethods.SelectedIndexChanged += cmbMethods_SelectedIndexChanged; }
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>(); }