예제 #1
0
        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);
        }
예제 #2
0
 public void InitializeMappings()
 {
     MappingRegistrar.AddMapping();
 }
예제 #3
0
 protected virtual void InitializeAutoMapper()
 {
     MappingRegistrar.AddMapping();
 }