Ejemplo n.º 1
0
 //called only locally
 private void onClusterUncluster(ClientCluster cluster,
                                 ClientClusterable badge,
                                 bool plus, bool playImmidiately)
 {
     if (plus)
     {
         //cluster must exist
         clusterRebuildPending = true;
         _rt.clienRt.SendClusterBadgeRequest(badge.GetId(),
                                             cluster.GetId(),
                                             _palette.GetOwnerId(),
                                             TopicId,
                                             playImmidiately,
                                             -1);
     }
     else
     {
         //server checks if affected clsuter is empty
         clusterRebuildPending = true;
         _rt.clienRt.SendUnclusterBadgeRequest(badge.GetId(),
                                               cluster.GetId(),
                                               TopicId,
                                               _palette.GetOwnerId(),
                                               playImmidiately,
                                               -1);
     }
 }
Ejemplo n.º 2
0
        //ctor for drawing
        public VdCluster(int owner, int shapeId,
            VdDocument doc,
            OnClusterUncluster onClusterUncluster,
            OnClusterCleanup OnClusterCleanup)
            : base(owner, shapeId)
        {
            _doc = doc;

            _endpoint = new ClientCluster(shapeId, boundsProvider);

            _onClusterUncluster = onClusterUncluster;

            _OnClusterCleanup = OnClusterCleanup;

            init(DaoUtils.UserIdToColor(owner));
        }
Ejemplo n.º 3
0
        //ctor for drawing
        public VdCluster(int owner, int shapeId,
                         VdDocument doc,
                         OnClusterUncluster onClusterUncluster,
                         OnClusterCleanup OnClusterCleanup) :
            base(owner, shapeId)
        {
            _doc = doc;

            _endpoint = new ClientCluster(shapeId, boundsProvider);

            _onClusterUncluster = onClusterUncluster;

            _OnClusterCleanup = OnClusterCleanup;

            init(DaoUtils.UserIdToColor(owner));
        }
Ejemplo n.º 4
0
 //called only locally
 void onClusterUncluster(ClientCluster cluster,
                         ClientClusterable badge,
                         bool plus, bool playImmidiately)
 {
     if (plus)
     {
         //cluster must exist      
         clusterRebuildPending = true;
         _rt.clienRt.SendClusterBadgeRequest(badge.GetId(), 
                                             cluster.GetId(),
                                             _palette.GetOwnerId(),
                                             TopicId,
                                             playImmidiately,
                                             -1);
     }
     else
     {
         //server checks if affected clsuter is empty     
         clusterRebuildPending = true;
         _rt.clienRt.SendUnclusterBadgeRequest(badge.GetId(), 
                                              cluster.GetId(),                                                      
                                              TopicId, 
                                              _palette.GetOwnerId(),
                                              playImmidiately,
                                              -1);
     }             
 }