BTool.DeviceFormUtils.GetUuidLength C# (CSharp) Method

GetUuidLength() public method

public GetUuidLength ( byte format, bool &dataErr ) : int
format byte
dataErr bool
return int
        public int GetUuidLength(byte format, ref bool dataErr)
        {
            dataErr = false;
            switch (format)
            {
                case 1:
                    return 2;
                case 2:
                    return 16;
            }
            m_msgBox.UserMsgBox(SharedObjects.MainWin, MsgBox.MsgTypes.Error, string.Format("Can Not Convert The UUID Format. [{0}]\n", format));
            dataErr = true;
            return 0;
        }