public WarrantyTypeForm() { InitializeComponent(); this.ctrlWarrantyTypeForm = new WarrantyTypeFormController(this); this.srvWarrantyType = SamsaraAppContext.Resolve <IWarrantyTypeService>(); Assert.IsNotNull(this.srvWarrantyType); }
public WarrantyTypeFormController(WarrantyTypeForm instance) { this.frmWarrantyType = instance; this.srvWarrantyType = SamsaraAppContext.Resolve <IWarrantyTypeService>(); Assert.IsNotNull(this.srvWarrantyType); this.InitializeFormControls(); }