示例#1
0
        public static PointMove Read(Dictionary<byte, object> par)
        {
            var res = new PointMove();
            res.ownerId = (int) par[(byte) DiscussionParamKey.ShapeOwnerId];
            res.shapeId = (int) par[(byte) DiscussionParamKey.ShapeId];
            res.X = (double) par[(byte) DiscussionParamKey.AnchorX];
            res.Y = (double) par[(byte) DiscussionParamKey.AnchorY];

            return res;
        }
示例#2
0
        public static PointMove Read(Dictionary <byte, object> par)
        {
            var res = new PointMove();

            res.ownerId = (int)par[(byte)DiscussionParamKey.ShapeOwnerId];
            res.shapeId = (int)par[(byte)DiscussionParamKey.ShapeId];
            res.X       = (double)par[(byte)DiscussionParamKey.AnchorX];
            res.Y       = (double)par[(byte)DiscussionParamKey.AnchorY];

            return(res);
        }