Esempio n. 1
0
        public void NewStatisticsView(Store s)
        {
            var viewModel      = new StoreStatisticsViewModel(s);
            var statisticsView = new StoreStatisticsView {
                DataContext = viewModel
            };
            var tabItemViewModel = new TabItemViewModel(String.Format(Strings.StatisticsTabDefaultTitle, s.Location),
                                                        statisticsView);

            TabItems.Add(tabItemViewModel);
            Messenger.Default.Send(new SelectTabMessage(tabItemViewModel));
        }
 public void NewStatisticsView(Store s)
 {
     var viewModel = new StoreStatisticsViewModel(s);
     var statisticsView = new StoreStatisticsView {DataContext = viewModel};
     var tabItemViewModel = new TabItemViewModel(String.Format(Strings.StatisticsTabDefaultTitle, s.Location),
                                                 statisticsView);
     TabItems.Add(tabItemViewModel);
     Messenger.Default.Send(new SelectTabMessage(tabItemViewModel));
 }