提交 8f110b08 编写于 作者: cdy816's avatar cdy816

Bug修复

上级 a6910401
......@@ -1084,6 +1084,62 @@ namespace DBInStudio.Desktop
case Cdy.Tag.TagType.UShort:
ntag = new Cdy.Tag.UShortTag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group, Conveter = mRealTagMode.Conveter != null ? mRealTagMode.Conveter.Clone() : null };
break;
case Cdy.Tag.TagType.IntPoint:
ntag = new Cdy.Tag.IntPointTag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.IntPoint;
}
break;
case Cdy.Tag.TagType.IntPoint3:
ntag = new Cdy.Tag.IntPoint3Tag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.IntPoint3;
}
break;
case Cdy.Tag.TagType.UIntPoint:
ntag = new Cdy.Tag.UIntPointTag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.UIntPoint;
}
break;
case Cdy.Tag.TagType.UIntPoint3:
ntag = new Cdy.Tag.UIntPoint3Tag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.UIntPoint3;
}
break;
case Cdy.Tag.TagType.LongPoint:
ntag = new Cdy.Tag.LongPointTag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.LongPoint;
}
break;
case Cdy.Tag.TagType.LongPoint3:
ntag = new Cdy.Tag.LongPoint3Tag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.LongPoint3;
}
break;
case Cdy.Tag.TagType.ULongPoint:
ntag = new Cdy.Tag.ULongPointTag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.ULongPoint;
}
break;
case Cdy.Tag.TagType.ULongPoint3:
ntag = new Cdy.Tag.ULongPoint3Tag() { Id = this.mRealTagMode.Id, Name = mRealTagMode.Name, Desc = mRealTagMode.Desc, LinkAddress = mRealTagMode.LinkAddress, Group = mRealTagMode.Group };
if (mHisTagMode != null)
{
mHisTagMode.TagType = Cdy.Tag.TagType.ULongPoint3;
}
break;
default:
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册