Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <KeyValuePair <int, DailyReport> > GetNuclear([FromBody] Input input)
 {
     NuclearAgent.CalculateNucChallenge(input.Icons);
     return(DailyReport.TableToDictionry(NuclearAgent.OutputTable));
 }