/// <summary> /// Initializes a new instance of the CardListViewModel class. /// </summary> public CardListViewModel(ICDBService cdbService, IExDialogService dialogService) { _cdbService = cdbService; ContentId = "CardList"; _dialogService = dialogService; //try { // cdbService.Open(Properties.Settings.Default.lastCDB); // ResetSearch(); //} //catch(System.Exception ex) { // Debug.WriteLine(ex.StackTrace); //} }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IHighlightSettingService hlSettingService,IExDialogService dialogService) { _hlSettingService = hlSettingService; _dialogService = dialogService; ReOpenDocument(); }