示例#1
0
        public static TestDoExamType toTestDoExamType(this string text)
        {
            TestDoExamType str = TestDoExamType.ForwardAndBackword;

            switch (text)
            {
            case "เดินหน้าและถอยหลัง":
                str = TestDoExamType.ForwardAndBackword;
                break;

            case "เดินหน้าอย่างเดียว":
                str = TestDoExamType.ForwardOnly;
                break;

            case "0":
                str = TestDoExamType.ForwardAndBackword;
                break;

            case "1":
                str = TestDoExamType.ForwardOnly;
                break;

            default:
                break;
            }
            return(str);
        }
示例#2
0
        public static string toTestDoExamType(this TestDoExamType statusType)
        {
            string str = "";

            switch (statusType)
            {
            case TestDoExamType.ForwardAndBackword:
                str = "เดินหน้าและถอยหลัง";
                break;

            case TestDoExamType.ForwardOnly:
                str = "เดินหน้าอย่างเดียว";
                break;

            default:
                break;
            }
            return(str);
        }