Beispiel #1
0
 public int GetTextId()
 {
     if (text == null)
     {
         return(-1);
     }
     else
     {
         return(text.Id());
     }
 }
Beispiel #2
0
        private void OnTextEdited(VdText text)
        {
            var hostCluster = Doc.GetShapes()
                              .Where(sh => sh.ShapeCode() == VdShapeType.Cluster)
                              .FirstOrDefault(cl => cl.GetState(_doc.TopicId).ints[0] == text.Id());

            if (hostCluster != null)
            {
                _rt.clienRt.SendStatsEvent(StEvent.ClusterTitleEdited,
                                           _palette.GetOwnerId(),
                                           _doc.DiscussionId,
                                           _doc.TopicId,
                                           DeviceType.Wpf);
            }
        }
Beispiel #3
0
        private void OnTextEdited(VdText text)
        {
            var hostCluster = Doc.GetShapes()
                .Where(sh => sh.ShapeCode() == VdShapeType.Cluster)
                .FirstOrDefault(cl => cl.GetState(_doc.TopicId).ints[0] == text.Id());

            if (hostCluster != null)
            {
                _rt.clienRt.SendStatsEvent(StEvent.ClusterTitleEdited,
                                           _palette.GetOwnerId(),
                                           _doc.DiscussionId,
                                           _doc.TopicId,
                                           DeviceType.Wpf);
            }
        }