コード例 #1
0
        public bool MakeChoice(NfAppParamChoice choice)
        {
            if (choice == NfAppParamChoice.NfAppParamChoiceYes)
            {
                return(true);
            }

            return(false);
        }
コード例 #2
0
        public bool MakeChoice(NfAppParamChoice choice, bool curValue)
        {
            switch (choice)
            {
            case NfAppParamChoice.NfAppParamChoiceYes:
                return(true);

            case NfAppParamChoice.NfAppParamChoiceNo:
                return(false);

            default:
                break;
            }

            return(curValue);
        }