public int GetTextId() { if (text == null) { return(-1); } else { return(text.Id()); } }
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); } }