using System; namespace ProductionUiCordonelLegacy.ProductionProcesses.Enum { public enum ProductionProcessState { Waiting, Started, Done, Error } public static class ProductionProcessStateHelper { public static String GetTextFromProductionProcessState(ProductionProcessState sate) { switch (sate) { case ProductionProcessState.Waiting: return "Warte"; case ProductionProcessState.Started: return "Läuft"; case ProductionProcessState.Done: return "Fertig"; default: return "Fehler"; } } } }