Ejemplo n.º 1
0
        public virtual void MoveToGroup(Artist target)
        {
            ParamIs.NotNull(() => target);

            if (target.Equals(Parent))
            {
                return;
            }

            Parent.AllMembers.Remove(this);
            Parent = target;
            target.AllMembers.Add(this);
        }
Ejemplo n.º 2
0
        public virtual void MoveToMember(Artist target)
        {
            ParamIs.NotNull(() => target);

            if (target.Equals(Member))
            {
                return;
            }

            Member.AllGroups.Remove(this);
            Member = target;
            target.AllGroups.Add(this);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Tests whether an artist is a valid base voicebank for this artist.
 ///
 /// Base voicebank can be null (not set).
 /// If set, the base voicebank must not have a base voicebank set, otherwise circular dependencies might occur.
 /// An artist cannot be the base voicebank of itself obviously.
 /// </summary>
 /// <param name="artist"></param>
 /// <returns></returns>
 public virtual bool IsValidBaseVoicebank(Artist artist)
 {
     return(artist == null || (!artist.Equals(this) && !artist.HasBaseVoicebank(this)));
 }