public void Save() { InsertMethParamsVisibility = false; NewTabVisibility = true; if (MainWindowViewModel.Instance.typeOfChallenge == "Chemical") { ChemModel chemModel = new ChemModel(MainWindowViewModel.dataServiceInstance, MainWindowViewModel.methParamsInstance, MainWindowViewModel.Instance.iconRepository.GetIcons()); chemModel.MakeExIcons(); chemModel.MakeCohorts(); chemModel.MakeCIPs(); Dictionary <int, DailyReport> report; report = chemModel.MakeReport(); MainWindowViewModel.Instance.ShowReport(report); } else if (MainWindowViewModel.Instance.typeOfChallenge == "Nuclear") { NuclearAgent.CalculateNucChallenge(MainWindowViewModel.Instance.iconRepository.GetIcons()); /* * * Convert NuclearAgent.OutputTable(DataTable) to Dictionary * * */ //MainWindowViewModel.Instance.ShowReport(GetDict(NuclearAgent.OutputTable)); } }
public IEnumerable <KeyValuePair <int, DailyReport> > GetNuclear([FromBody] Input input) { NuclearAgent.CalculateNucChallenge(input.Icons); return(DailyReport.TableToDictionry(NuclearAgent.OutputTable)); }