示例#1
0
		public static Brush GetAmpelBrush(AktivitaetsTyp.AmpelTyp Typ)
			{
			BrushConverter BrConverter = new BrushConverter();
			switch (Typ)
				{
				case AktivitaetsTyp.AmpelTyp.Red:
					return (Brush)BrConverter.ConvertFromString("#FFFF0000");
					break;
				case AktivitaetsTyp.AmpelTyp.Green:
					return (Brush)BrConverter.ConvertFromString("#FF00FF00");
					break;
				case AktivitaetsTyp.AmpelTyp.Yellow:
					return (Brush)BrConverter.ConvertFromString("#FFFFFF00");
					break;
				case AktivitaetsTyp.AmpelTyp.NoAction:
					return (Brush)BrConverter.ConvertFromString("#FF888888");
					break;
				default:
					return (Brush)BrConverter.ConvertFromString("#FF444444");
					break;
				}
			}
示例#2
0
		public int CounterForAmpel(AktivitaetsTyp.AmpelTyp? ampelTyp)
			=> Vorschlaege.Where(whe => whe.AmpelTypForThisProjekt == ampelTyp).Count();