39 lines
1011 B
C#
39 lines
1011 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace De.Lambertz.ODAL
|
|
{
|
|
public static class Konstanten
|
|
{
|
|
public enum Priorität
|
|
{
|
|
ohneAussage = 0,
|
|
C = 7,
|
|
B = 8,
|
|
A = 9
|
|
}
|
|
|
|
public static Konstanten.Priorität GetPriorität(int i)
|
|
{
|
|
Konstanten.Priorität result = Konstanten.Priorität.ohneAussage;
|
|
switch (i)
|
|
{
|
|
case (int)Konstanten.Priorität.A:
|
|
result = Konstanten.Priorität.A;
|
|
break;
|
|
case (int)Konstanten.Priorität.B:
|
|
result = Konstanten.Priorität.B;
|
|
break;
|
|
case (int)Konstanten.Priorität.C:
|
|
result = Konstanten.Priorität.C;
|
|
break;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|