예제 #1
0
        public AppViewModel(ColorViewModel colorModel, IEventAggregator events)
        {
            ColorModel = colorModel;

            // Get the event aggregator through the constructor and subscribe this ColorViewModel so it can listen for ColorEvent messages.
            events.Subscribe(this);
        }
예제 #2
0
        public AppViewModel(ColorViewModel colorModel, IEventAggregator events)
        {
            ColorModel = colorModel;

            events.Subscribe(this);
        }