public MainWindowViewModel(IDialogService dialogService, int inputScheme, string typeOfChallenge = null, string agent = null) { if (Instance == null) { Instance = this; } if (methParamsInstance == null) { methParamsInstance = new MethParams(); } if (dataServiceInstance == null) { dataServiceInstance = new DataService(); } MethParamsWorkspace = new MethParamsViewModel(); Workspace = MethParamsWorkspace; this.typeOfChallenge = typeOfChallenge; this.agent = agent; this.inputScheme = inputScheme; this.dialogService = dialogService; base.DisplayName = "MainWindow"; iconRepository = new IconRepository(); }
public static void CalculateRadiologicalChallenge(IEnumerable <Icon> enumerableIcons, MethParams methParams) { List <Icon> icons = enumerableIcons.ToList(); List <string> izotop = new List <string>(); izotop.Add("90Sr"); GenerateOutput(); foreach (var icon in icons) { InitChallengeType(icon, izotop); Calculate(icon); } }
public MethParamsDisplay() { //ChallengeTypeList = GetChallengeTypeList(); ChType = ChallengeType.Chemical.ToString(); Agents = MethParams.GetChemAgents(); }