/// <summary>
        /// </summary>
        /// <returns>
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        private BaseKnuBot GetBaseKnuBot()
        {
            // Get down to root
            KnuBotDialogTree temp = this;

            while (temp.Parent != null)
            {
                temp = temp.Parent;
            }

            BaseKnuBot knu = this.knuBot;

            if (knu == null)
            {
                throw new Exception("Base KnuBot gone away.");
            }

            return(knu);
        }
 /// <summary>
 /// </summary>
 /// <param name="knu">
 /// </param>
 internal void SetKnuBot(BaseKnuBot knu)
 {
     this.knuBot = knu;
 }
예제 #3
0
 public void SetKnuBot(BaseKnuBot knubot)
 {
     this.KnuBot = knubot;
 }
 /// <summary>
 /// </summary>
 /// <param name="knu">
 /// </param>
 internal void SetKnuBot(BaseKnuBot knu)
 {
     this.knuBot = knu;
 }