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();
 }
 public OpportunityStatusForm()
 {
     InitializeComponent();
     this.ctrlOpportunityStatusForm = new OpportunityStatusFormController(this);
     this.srvOpportunityStatus      = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
 }
 public OpportunityStatusFormController(OpportunityStatusForm instance)
 {
     this.frmOpportunityStatus = instance;
     this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
     this.InitializeFormControls();
 }