public ContentViewModel(IEventAggregator eventAggregator, GreetingsMessageProvider greetingsMessageProvider, Operations myOperations) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _greetingsMessageProvider = greetingsMessageProvider; _Operations = myOperations; }
public HeaderViewModel(IEventAggregator eventAggregator, GreetingsMessageProvider greetingsMessageProvider, Operations operations) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _greetingsMessageProvider = greetingsMessageProvider; //Title = greetingsMessageProvider.Message; _Operations = operations; }
public ShellViewModel( GreetingsMessageProvider greetingsMessageProvider, Operations myOperations, HeaderViewModel headerViewModel, ContentViewModel contentViewModel ) { _greetingsMessageProvider = greetingsMessageProvider; _myOperations = myOperations; HeaderViewModel = headerViewModel; ContentViewModel = contentViewModel; Items.AddRange(new Screen[] { HeaderViewModel, ContentViewModel }); }