public CodeBoxViewModel(IUnityContainer container, AbstractWorkspace workspace) { _workspace = workspace; _container = container; Name = "CodeBox"; IsVisible = false; _model = new CodeBoxModel(); _view = new CodeBoxView(); _view.DataContext = _model; _aggregator = _container.Resolve <IEventAggregator>(); }
public CodeBoxViewModel(IUnityContainer container, AbstractWorkspace workspace) { _workspace = workspace; _container = container; Name = "CodeBox"; IsVisible = false; _model = new CodeBoxModel(); _view = new CodeBoxView(); _view.DataContext = _model; _aggregator = _container.Resolve<IEventAggregator>(); }