public void DisplayTabItemToolbars(TabItemViewModel tabItemViewModel) { if (tabItemViewModel == null) { return; } var msg = new DisplayToolbarMessage { Toolbars = tabItemViewModel.Toolbars }; Messenger.Default.Send(msg); }
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 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 NewHistoryView(Store s) { var viewModel = new StoreHistoryViewModel(s, Configuration.Prefixes); var historyView = new StoreHistoryView { DataContext = viewModel }; var tabItemViewModel = new TabItemViewModel(String.Format(Strings.HistoryTabDefaultTitle, s.Location), historyView); tabItemViewModel.Toolbars.Add("SparqlQueryToolbar"); tabItemViewModel.Toolbars.Add("HistoryToolbar"); TabItems.Add(tabItemViewModel); Messenger.Default.Send(new SelectTabMessage(tabItemViewModel)); }
public object NewTransaction(Store s) { var viewModel = new TransactionViewModel(s, Configuration.Prefixes); var transactionView = new TransactionView { DataContext = viewModel }; var tabItemViewModel = new TabItemViewModel(Strings.TransactionTabDefaultTitle, transactionView); tabItemViewModel.Toolbars.Add("StoreSelectorToolbar"); tabItemViewModel.Toolbars.Add("TransactionToolbar"); TabItems.Add(tabItemViewModel); Messenger.Default.Send(new SelectTabMessage(tabItemViewModel)); return(null); }
public object NewSparqlUpdate(Store s) { var viewModel = new SparqlUpdateViewModel(s, Configuration.Prefixes); var sparqlUpdateView = new SparqlUpdateView { DataContext = viewModel }; var tabItemModel = new TabItemViewModel("SPARQL Update", sparqlUpdateView); tabItemModel.Toolbars.Add("StoreSelectorToolbar"); tabItemModel.Toolbars.Add("SparqlUpdateToolbar"); TabItems.Add(tabItemModel); Messenger.Default.Send(new SelectTabMessage(tabItemModel)); return(null); }
public void DisplayTabItemToolbars(TabItemViewModel tabItemViewModel) { if (tabItemViewModel == null) return; var msg = new DisplayToolbarMessage {Toolbars= tabItemViewModel.Toolbars}; Messenger.Default.Send(msg); }
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 NewHistoryView(Store s) { var viewModel = new StoreHistoryViewModel(s, Configuration.Prefixes); var historyView = new StoreHistoryView {DataContext = viewModel}; var tabItemViewModel = new TabItemViewModel(String.Format(Strings.HistoryTabDefaultTitle, s.Location), historyView); tabItemViewModel.Toolbars.Add("SparqlQueryToolbar"); tabItemViewModel.Toolbars.Add("HistoryToolbar"); TabItems.Add(tabItemViewModel); Messenger.Default.Send(new SelectTabMessage(tabItemViewModel)); }
public object NewTransaction(Store s) { var viewModel = new TransactionViewModel(s, Configuration.Prefixes); var transactionView = new TransactionView{DataContext = viewModel}; var tabItemViewModel = new TabItemViewModel(Strings.TransactionTabDefaultTitle, transactionView); tabItemViewModel.Toolbars.Add("StoreSelectorToolbar"); tabItemViewModel.Toolbars.Add("TransactionToolbar"); TabItems.Add(tabItemViewModel); Messenger.Default.Send(new SelectTabMessage(tabItemViewModel)); 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; }
public object NewSparqlUpdate(Store s) { var viewModel = new SparqlUpdateViewModel(s, Configuration.Prefixes); var sparqlUpdateView = new SparqlUpdateView {DataContext = viewModel}; var tabItemModel = new TabItemViewModel("SPARQL Update", sparqlUpdateView); tabItemModel.Toolbars.Add("StoreSelectorToolbar"); tabItemModel.Toolbars.Add("SparqlUpdateToolbar"); TabItems.Add(tabItemModel); Messenger.Default.Send(new SelectTabMessage(tabItemModel)); return null; }
public CloseTabMessage(TabItemViewModel tabItem) { TabItem = tabItem; }
public SelectTabMessage(TabItemViewModel tabItem) { TabItem = tabItem; }