public TradeAnalysisViewModel(EveRepository repository) { _repository = repository; _categories = _repository.GetTradeCategories(); _currentSecurityLevel = "All"; _securityLevels = new Dictionary <string, double> { { "All", -1 }, { "Low Sec", 0.1 }, { "High Sec", 0.5 } }; SecurityLevels = new ObservableCollection <string>(_securityLevels.Keys); TradeCategories = new ObservableCollection <TradeCategory>(_categories); TradeGroups = new ObservableCollection <TradeGroup>(); AnalyzeCommand = new DelegateCommand(Analyze); ShowDetails = new DelegateCommand(ShowMarketDetails); StartAllCommand = new DelegateCommand(StartAll); }