public LotacaoViewModel() : base(new LotacaoModel()) { bool isInWpfDesignerMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime); if (!isInWpfDesignerMode) { _lotacaoAppServico = UnityInitializer.Container.Resolve <LotacaoAppServico>(); _pessoaAppServico = UnityInitializer.Container.Resolve <PessoaAppServico>(); } }
public Form2(ILotacaoAppServico appServico) : base(new LotacaoViewModel()) { _appServico = appServico; InitializeComponent(); }
public ProdutoController(ILotacaoAppServico appServico) { _appServico = appServico; }
public Form1(ILotacaoAppServico appServico) { _appServico = appServico; InitializeComponent(); }
//private IEnumerable<LotacaoModel> _pesquisaLotacao; public LotacaoViewModel(ILotacaoAppServico appServico) { this.Model = new LotacaoModel(); _appServico = appServico; //_appServico = SimpleInjectorInitializer.Container.GetInstance<LotacaoAppServico>(); }