예제 #1
0
        public static ProveStatus toProveStatus(this string text)
        {
            ProveStatus str = ProveStatus.Pending;

            switch (text)
            {
            case "รอตรวจสอบ":
                str = ProveStatus.Pending;
                break;

            case "ตรวจแล้ว":
                str = ProveStatus.Proved;
                break;

            case "0":
                str = ProveStatus.Pending;
                break;

            case "1":
                str = ProveStatus.Proved;
                break;

            default:
                break;
            }
            return(str);
        }
예제 #2
0
        public static string toProveStatusName(this ProveStatus statusType)
        {
            string str = "";

            switch (statusType)
            {
            case ProveStatus.Pending:
                str = "รอตรวจสอบ";
                break;

            case ProveStatus.Proved:
                str = "ตรวจแล้ว";
                break;

            default:
                break;
            }
            return(str);
        }