private void ThisAddIn_Startup(object sender, System.EventArgs e) { _container = new WindsorContainer(); ComponentRegistrar.AddExcelComponentsTo(_container); RegisterBusiness(); MappingRegistrar.AddMapping(); _productModule = _container.Resolve <IProductModule>(); Globals.Ribbons.RiaRibbon.btnSync.Click += btnSync_Click; Globals.Ribbons.RiaRibbon.btnSaveUpdate.Click += btnSaveUpdate_Click; Globals.Ribbons.RiaRibbon.btnImage.Click += btnImage_Click; RibbonDropDownItem item = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem(); item.Label = "Test"; Globals.Ribbons.RiaRibbon.ddlMainView.Items.Add(item); }
public void InitializeMappings() { MappingRegistrar.AddMapping(); }
protected virtual void InitializeAutoMapper() { MappingRegistrar.AddMapping(); }