// Convert ZBTyp to string public static string ZBTypToString(ZBTyp typ) { switch (typ) { case ZBTyp.KOMMEN: return("Kommen"); break; case ZBTyp.GEHEN: return("Gehen"); break; default: return("???"); } }
// Convert ZBTyp to integer (same as column // value in database) public static int ZBTypToInt(ZBTyp typ) { return((int)typ); }