コード例 #1
0
        public MainWindowViewModel(string itemDataFile, string searchDataFile)
        {
            base.DisplayName = "Title";

            _logsVM = new LogsViewModel(System.Windows.Threading.Dispatcher.CurrentDispatcher);
            _allItemsViewModel = new AllItemsViewModel(itemDataFile);
            _allSearchesViewModel = new AllSearchesViewModel(System.Windows.Threading.Dispatcher.CurrentDispatcher,
                                                                searchDataFile, _logsVM, _allItemsViewModel.ItemRepository);
        }
コード例 #2
0
        public MainWindowViewModel(string itemDataFile, string searchDataFile)
        {
            base.DisplayName = "Title";

            _logsVM               = new LogsViewModel(System.Windows.Threading.Dispatcher.CurrentDispatcher);
            _allItemsViewModel    = new AllItemsViewModel(itemDataFile);
            _allSearchesViewModel = new AllSearchesViewModel(System.Windows.Threading.Dispatcher.CurrentDispatcher,
                                                             searchDataFile, _logsVM, _allItemsViewModel.ItemRepository);
        }