public Form1(ILifetimeScope scope) { this.scope = scope; this.regionService = scope.Resolve <IRegionService>(); this.treeTypeService = scope.Resolve <ITreeTypeService>(); InitializeComponent(); }
public FrmTreeType(ITreeTypeService treeTypeService, FrmTreeTypes frmTreeTypes, int?id, ILifetimeScope scope) { InitializeComponent(); this.treeTypeService = treeTypeService; this.frmTreeTypes = frmTreeTypes; selectedId = id; regionService = scope.Resolve <IRegionService>(); }
public FrmTreeTypes(ILifetimeScope scope) { InitializeComponent(); this.scope = scope; this.treeTypeService = scope.Resolve <ITreeTypeService>(); }