Exemple #1
0
 protected void Bind(IInstanceHolderSet holder)
 {
     if (holder.InstanceLeader.Group != null)
     {
         holder.InstanceLeader.Group.ForeachCharacter(chr =>
         {
             InstanceCollection instances = chr.Instances;
             if (instances == null)
             {
                 return;
             }
             instances.BindTo(this);
         });
     }
     else
     {
         holder.InstanceLeaderCollection.BindTo(this);
     }
 }