Merge
This commit is contained in:
@@ -439,7 +439,19 @@ namespace BeWo.View.Detail
|
||||
_PossibleDiagnosis = new BindingList<KeyValuePair<string, string>>(new List<KeyValuePair<string, string>>(BeWoApp.ICD10Diagnosis));
|
||||
_ChoosenDiagnosis = new BindingList<KeyValuePair<string, string>>();
|
||||
|
||||
var ch = ViewModel.ICD10Codes.Select(code => new KeyValuePair<string, string>(code, BeWoApp.ICD10Diagnosis[code])).ToList();
|
||||
var ch = new List<KeyValuePair<string, string>>();
|
||||
|
||||
foreach (var code in ViewModel.ICD10Codes)
|
||||
{
|
||||
if (BeWoApp.ICD10Diagnosis.ContainsKey(code))
|
||||
{
|
||||
ch.Add(new KeyValuePair<string, string>(code, BeWoApp.ICD10Diagnosis[code]));
|
||||
}
|
||||
else
|
||||
{
|
||||
ch.Add(new KeyValuePair<string, string>(code, ""));
|
||||
}
|
||||
}
|
||||
|
||||
_ChoosenDiagnosis.AddRange(ch);
|
||||
_PossibleDiagnosis.RemoveRange(ch);
|
||||
|
||||
Reference in New Issue
Block a user