Example #1
0
        public BusinessPartner_Ger_List()
        {
            // Get required service
            this.businessPartnerService                 = DependencyResolver.Kernel.Get <IBusinessPartnerService>();
            this.businessPartnerLocationService         = DependencyResolver.Kernel.Get <IBusinessPartnerLocationService>();
            this.businessPartnerPhoneService            = DependencyResolver.Kernel.Get <IBusinessPartnerPhoneService>();
            this.businessPartnerOrganizationUnitService = DependencyResolver.Kernel.Get <IBusinessPartnerOrganizationUnitService>();
            this.businessPartnerBankService             = DependencyResolver.Kernel.Get <IBusinessPartnerBankService>();
            this.businessPartnerInstitutionService      = DependencyResolver.Kernel.Get <IBusinessPartnerInstitutionService>();
            this.businessPartnerTypeService             = DependencyResolver.Kernel.Get <IBusinessPartnerTypeService>();
            this.businessPartnerNoteService             = DependencyResolver.Kernel.Get <IBusinessPartnerNoteService>();

            // Initialize form components
            InitializeComponent();

            this.DataContext = this;
        }
 public BusinessPartnerOrganizationUnitController(IServiceProvider provider)
 {
     businessPartnerOrganizationUnitService = provider.GetRequiredService <IBusinessPartnerOrganizationUnitService>();
 }