Esempio n. 1
0
 public static CreateShape Read(Dictionary<byte, object> par)
 {
     var res = new CreateShape();
     res.ownerId = (int) par[(byte) DiscussionParamKey.ShapeOwnerId];
     res.shapeId = (int) par[(byte) DiscussionParamKey.ShapeId];
     res.shapeType = (VdShapeType) par[(byte) DiscussionParamKey.ShapeType];
     res.startX = (double) par[(byte) DiscussionParamKey.AnchorX];
     res.startY = (double) par[(byte) DiscussionParamKey.AnchorY];
     res.takeCursor = (bool) par[(byte) DiscussionParamKey.AutoTakeCursor];
     res.tag = (int) par[(byte) DiscussionParamKey.Tag];
     res.topicId = (int) par[(byte) DiscussionParamKey.ChangedTopicId];
     return res;
 }
Esempio n. 2
0
        public static CreateShape Read(Dictionary <byte, object> par)
        {
            var res = new CreateShape();

            res.ownerId    = (int)par[(byte)DiscussionParamKey.ShapeOwnerId];
            res.shapeId    = (int)par[(byte)DiscussionParamKey.ShapeId];
            res.shapeType  = (VdShapeType)par[(byte)DiscussionParamKey.ShapeType];
            res.startX     = (double)par[(byte)DiscussionParamKey.AnchorX];
            res.startY     = (double)par[(byte)DiscussionParamKey.AnchorY];
            res.takeCursor = (bool)par[(byte)DiscussionParamKey.AutoTakeCursor];
            res.tag        = (int)par[(byte)DiscussionParamKey.Tag];
            res.topicId    = (int)par[(byte)DiscussionParamKey.ChangedTopicId];
            return(res);
        }
Esempio n. 3
0
 void createShapeEvent(CreateShape ev)
 {
     if (ev.topicId != TopicId)
         return;
     
     PlayCreateShape(ev.shapeType, ev.shapeId, ev.ownerId, ev.startX, ev.startY, ev.takeCursor, ev.tag);
 }