Exemplo n.º 1
0
        public static TestCustomOrderType toTestCustomOrderType(this string text)
        {
            TestCustomOrderType str = TestCustomOrderType.Order;

            switch (text)
            {
            case "เรียงลำดับ":
                str = TestCustomOrderType.Order;
                break;

            case "สลับข้อ":
                str = TestCustomOrderType.Random;
                break;

            case "0":
                str = TestCustomOrderType.Order;
                break;

            case "1":
                str = TestCustomOrderType.Random;
                break;

            default:
                break;
            }
            return(str);
        }
Exemplo n.º 2
0
        public static string toTestCustomOrderType(this TestCustomOrderType statusType)
        {
            string str = "";

            switch (statusType)
            {
            case TestCustomOrderType.Order:
                str = "เรียงลำดับ";
                break;

            case TestCustomOrderType.Random:
                str = "สลับข้อ";
                break;

            default:
                break;
            }
            return(str);
        }