Example #1
0
        public void SetLiveScore(BaseScore score, bool enable)
        {
            if (score.IsVirtual())
            {
                BaseScore sc = FindScore(score.Parent);
                if (sc != null)
                {
                    sc.SetLive(enable);
                }
            }

            score.SetLive(enable);
        }
Example #2
0
 /// <summary>
 /// Set the Home Score.
 /// </summary>
 /// <param name="score"></param>
 public void SetHomeScore(BaseScore score)
 {
     if (score == null)
     {
         this.Setup.Home = null;
     }
     else
     {
         if (this.Setup.Home == null)
         {
             this.Setup.Home = new HomeScore();
         }
         this.Setup.Home.Value = score.Id;
         if (score.IsVirtual())
         {
             this.Setup.Home.parent = score.Parent;
         }
     }
 }