예제 #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));
        }
예제 #2
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));
 }