Esempio n. 1
0
        public object NewExportJob(Store s)
        {
            var viewModel  = new ExportViewModel(s);
            var exportView = new ExportView {
                DataContext = viewModel
            };
            var tabItemModel = new TabItemViewModel(String.Format(Strings.ExportTabDefaultTitle, s.Location), exportView);

            TabItems.Add(tabItemModel);
            Messenger.Default.Send(new SelectTabMessage(tabItemModel));
            return(null);
        }
 public object NewExportJob(Store s)
 {
     var viewModel = new ExportViewModel(s);
     var exportView = new ExportView { DataContext = viewModel };
     var tabItemModel = new TabItemViewModel(String.Format(Strings.ExportTabDefaultTitle, s.Location), exportView);
     TabItems.Add(tabItemModel);
     Messenger.Default.Send(new SelectTabMessage(tabItemModel));
     return null;
 }