コード例 #1
0
 public ReceivedValueBoolean FromString(string value)
 {
     if (((value == "0") || (value == "1")) == false)
     {
         return(ReceivedValueBoolean.Error(ReturnCodeFactory.NcError));
     }
     return(ReceivedValueBoolean.Success(value == "0" ? false : true));
 }
コード例 #2
0
        public ReceivedValueBoolean GetSettingBoolean(string FolderPath, string IdSetting)
        {
            ReceivedValueText TextValue = GetStringValueOfSetting(FolderPath, IdSetting);

            if (TextValue.Code.Error)
            {
                return(ReceivedValueBoolean.Error(TextValue.Code.NumericValue, TextValue.Code.StringValue));
            }
            return(CvManager.CvBoolean.FromString(TextValue.Value));
        }