示例#1
0
        public ShellViewModel()
        {
            var feed    = new TwitterFeedViewModel();
            var tracker = new TweetTrackerViewModel(feed);

            Items.Add(feed);
            Items.Add(tracker);
            Main    = Items[0];
            SideBar = Items[1];
        }
        public ShellViewModel()
        {
            var eventAggregator = new Caliburn.Micro.EventAggregator();
            var feed            = new TwitterFeedViewModel(eventAggregator);
            var tracker         = new TweetTrackerViewModel(eventAggregator);

            Items.Add(feed);
            Items.Add(tracker);
            Main    = Items[0];
            SideBar = Items[1];
        }