示例#1
0
        public ContentViewModel(IEventAggregator eventAggregator, GreetingsMessageProvider greetingsMessageProvider, Operations myOperations)
        {
            _eventAggregator = eventAggregator;
            _eventAggregator.Subscribe(this);

            _greetingsMessageProvider = greetingsMessageProvider;
            _Operations = myOperations;
        }
示例#2
0
        public HeaderViewModel(IEventAggregator eventAggregator, GreetingsMessageProvider greetingsMessageProvider, Operations operations)
        {
            _eventAggregator = eventAggregator;
            _eventAggregator.Subscribe(this);

            _greetingsMessageProvider = greetingsMessageProvider;
            //Title = greetingsMessageProvider.Message;
            _Operations = operations;
        }
示例#3
0
        public ShellViewModel(
            GreetingsMessageProvider greetingsMessageProvider,
            Operations myOperations,
            HeaderViewModel headerViewModel,
            ContentViewModel contentViewModel
            )
        {
            _greetingsMessageProvider = greetingsMessageProvider;
            _myOperations             = myOperations;

            HeaderViewModel  = headerViewModel;
            ContentViewModel = contentViewModel;

            Items.AddRange(new Screen[] { HeaderViewModel, ContentViewModel });
        }