private void btn_Convert_Click(object sender, EventArgs e)
        {
            if (this.chk_ConvertEnable.Checked)
            {
                if (this.chk_Get.Checked)
                {
                    try
                    {
                        this.txt_Result.Text = MigrationLib.GetMigrationValue(GetSrcValueByType(this.txt_Source.Text.Trim(), GetSrcDataType()), this.txt_Scale.Text, this.txt_Offset.Text).ToString();
                    }
                    catch (Exception ex)
                    {
                        this.txt_Result.Text = "转换出错:" + ex.Message;
                    }
                }
                else
                {
                    var res = MigrationLib.SetMigrationValue(this.txt_Source.Text.Trim(), GetDesDataType(), this.txt_Scale.Text, this.txt_Offset.Text);
                    if (res.IsSuccess)
                    {
                        this.txt_Result.Text = res.Content.ToString();
                    }
                    else
                    {
                        this.txt_Result.Text = res.Message;
                    }
                }
            }

            else
            {
                switch (GetSrcDataType())
                {
                case DataType.Bool:

                    switch (GetDesDataType())
                    {
                    case DataType.Bool:
                        this.txt_Result.Text = this.txt_Source.Text;
                        break;

                    default:
                        this.txt_Result.Text = ErrorTips;
                        break;
                    }

                    break;

                case DataType.Byte:
                    switch (GetDesDataType())
                    {
                    case DataType.Bool:
                        this.txt_Result.Text = StringLib.GetStringFromBitArray(BitLib.GetBitArrayFromByte(Convert.ToByte(this.txt_Source.Text), this.chk_Reverse.Checked));

                        break;

                    case DataType.Byte:
                        this.txt_Result.Text = this.txt_Source.Text;
                        break;

                    case DataType.Short:
                        break;

                    case DataType.UShort:
                        break;

                    case DataType.Int:
                        break;

                    case DataType.UInt:
                        break;

                    case DataType.Float:
                        break;

                    case DataType.Double:
                        break;

                    case DataType.Long:
                        break;

                    case DataType.ULong:
                        break;

                    case DataType.String:
                        break;

                    case DataType.ByteArray:
                        break;

                    case DataType.HexString:
                        break;

                    default:
                        break;
                    }
                    break;

                case DataType.Short:
                    break;

                case DataType.UShort:
                    break;

                case DataType.Int:
                    break;

                case DataType.UInt:
                    break;

                case DataType.Float:
                    break;

                case DataType.Double:
                    break;

                case DataType.Long:
                    break;

                case DataType.ULong:
                    break;

                case DataType.String:
                    break;

                case DataType.ByteArray:
                    break;

                case DataType.HexString:
                    break;

                default:
                    break;
                }
            }
        }