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> > GetChemical([FromBody] Input input) { ChemModel model = new ChemModel(new DataService(), input.MethParams, input.Icons); return(model.MakeReport()); }