public OpportunityFormController(OpportunityForm instance)
 {
     this.frmOpportunity  = instance;
     this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>();
     Assert.IsNotNull(this.srvOrganization);
     this.srvBidder = SamsaraAppContext.Resolve <IBidderService>();
     Assert.IsNotNull(this.srvBidder);
     this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>();
     Assert.IsNotNull(this.srvDependency);
     this.srvEndUser = SamsaraAppContext.Resolve <IEndUserService>();
     Assert.IsNotNull(this.srvEndUser);
     this.srvAsesor = SamsaraAppContext.Resolve <IAsesorService>();
     Assert.IsNotNull(this.srvAsesor);
     this.srvTender = SamsaraAppContext.Resolve <ITenderService>();
     Assert.IsNotNull(this.srvTender);
     this.srvOpportunity = SamsaraAppContext.Resolve <IOpportunityService>();
     Assert.IsNotNull(this.srvOpportunity);
     this.srvOpportunityType = SamsaraAppContext.Resolve <IOpportunityTypeService>();
     Assert.IsNotNull(this.srvOpportunityType);
     this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
     this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>();
     Assert.IsNotNull(this.srvManufacturer);
     this.srvOpportunityLog = SamsaraAppContext.Resolve <IOpportunityLogService>();
     Assert.IsNotNull(this.srvOpportunityLog);
     this.InitializeFormControls();
 }
Пример #2
0
 public EndUserForm()
 {
     InitializeComponent();
     this.ctrlEndUserForm = new EndUserFormController(this);
     this.srvEndUser      = SamsaraAppContext.Resolve <IEndUserService>();
     Assert.IsNotNull(this.srvEndUser);
 }
Пример #3
0
 public EndUserFormController(EndUserForm instance)
 {
     this.frmEndUser    = instance;
     this.srvEndUser    = SamsaraAppContext.Resolve <IEndUserService>();
     this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>();
     this.InitializeFormControls();
 }
Пример #4
0
 public EndUsersController(IEndUserService service)
 {
     _service = service;
 }
Пример #5
0
 public EndUserController(IEndUserService enduserService, IOrderService orderService)
 {
     this._IEndUserService = enduserService;
     this._IOrderService   = orderService;
 }