コード例 #1
0
ファイル: ScoreCenter.Ext.cs プロジェクト: mbekoe/scorecenter
        public void SetLiveScore(BaseScore score, bool enable)
        {
            if (score.IsVirtual())
            {
                BaseScore sc = FindScore(score.Parent);
                if (sc != null)
                {
                    sc.SetLive(enable);
                }
            }

            score.SetLive(enable);
        }
コード例 #2
0
ファイル: ScoreCenter.Ext.cs プロジェクト: mbekoe/scorecenter
 /// <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;
         }
     }
 }