public DBSelectionViewModel(IMongoLabDataService mongoLabDataService, INavigationService navigationService, ISettingsStore settingsStore) : base (navigationService) { _mongoLabDataService = mongoLabDataService; _settingsStore = settingsStore; Refresh(); }
public DatabaseViewModel(ISettingsStore settingsStore, IMongoLabDataService mongoLabDataService, INavigationService navigationService) : base(navigationService) { this.mongoLabDataService = mongoLabDataService; this.settingsStore = settingsStore; databases = new ObservableCollection<MongoLabDB>(); this.RefreshCommand = new DelegateCommand(this.Refresh); this.AboutCommand = new DelegateCommand(this.About); this.SettingsCommand = new DelegateCommand(this.Settings); this.RepairDatabaseCommand = new DelegateCommand(this.RepairDatabase); Refresh(); }