0
C# WPF 앱에서이 파이 조각을 코딩했지만 실제로는 빨간색을 표시하지 않지만 금색을 표시합니다. 이제는 Visifire 때문에 버그가 있다고 들었습니다. 그래도 레드를 표시 할 수있는 방법이 있습니까? 간호사가 누군가의 혐의가 입력되지 않았는지 알아야하기 때문에 이것은 중요합니다.SolidColorBrush가 올바르게 표시되지 않습니다.
if (alrg.Description == "No Allergies")
alrg.Color = new SolidColorBrush(Colors.Red);
else if (alrg.Description == "Unknown")
alrg.Color = new SolidColorBrush(Colors.Yellow);
else if (alrg.Description == "Allergies")
alrg.Color = new SolidColorBrush(Colors.Green);
-> 이것은 작동하지 않습니다. –
[내보내기 (typeof (IModuleViewModel))] 클래스 PatientAllergiesViewModel : ModuleViewModel { [가져 오기] IPatientAllergiesRepository PatientAllergiesRepository {get; 세트; } static readonly String [] _groups = new String [] { "알레르기", "알레르기 없음", "알 수 없음"}}; –
public class PatientAllergy { 공용 PatientAllergy (문자열 설명, int 개수) { 설명 = 설명; Count = 개수; } 공용 문자열 설명 {get; 개인 집합; } public int Count {get; 개인 집합; } 공용 브러시 색상 {get; 세트; } } –