Example #1
0
        public static ExamRegisterType toExamRegisterType(this string text)
        {
            ExamRegisterType str = ExamRegisterType.Advance;

            switch (text)
            {
            case "ล่วงหน้า":
                str = ExamRegisterType.Advance;
                break;

            case "Walk In":
                str = ExamRegisterType.WalkIn;
                break;

            case "0":
                str = ExamRegisterType.Advance;
                break;

            case "1":
                str = ExamRegisterType.WalkIn;
                break;

            default:
                break;
            }
            return(str);
        }
Example #2
0
        public static string toExamRegisterType(this ExamRegisterType statusType)
        {
            string str = "";

            switch (statusType)
            {
            case ExamRegisterType.Advance:
                str = "ล่วงหน้า";
                break;

            case ExamRegisterType.WalkIn:
                str = "Walk In";
                break;

            default:
                break;
            }
            return(str);
        }