Exemplo n.º 1
0
        public static AttitudeAnsSubType toAttitudeAnsSubType(this string text)
        {
            AttitudeAnsSubType str = AttitudeAnsSubType.Sub1;

            switch (text)
            {
            case "แบบที่ 1":
                str = AttitudeAnsSubType.Sub1;
                break;

            case "แบบที่ 2":
                str = AttitudeAnsSubType.Sub2;
                break;

            case "1":
                str = AttitudeAnsSubType.Sub1;
                break;

            case "2":
                str = AttitudeAnsSubType.Sub2;
                break;

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

            switch (statusType)
            {
            case AttitudeAnsSubType.Sub1:
                str = "แบบที่ 1";
                break;

            case AttitudeAnsSubType.Sub2:
                str = "แบบที่ 2";
                break;

            default:
                break;
            }
            return(str);
        }