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; }
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); }