Example #1
0
		//public Objects.MatchScore.MatchSet Value
		//{
		//    get
		//    {
		//        if (set.SetPlayed)
		//        {
		//            Objects.MatchScore.MatchSet set = new Tennis.Objects.MatchScore.MatchSet();
		//            valueset.WGames.ToString();
		//            WinnerTiebreak = set.WTiebreak.ToString();
		//            LoserGames = set.LGames.ToString();
		//            LoserTiebreak = set.LTiebreak.ToString();
		//        }
		//        else
		//        {
		//            WinnerGames = "";
		//            WinnerTiebreak = "";
		//            LoserGames = "";
		//            LoserTiebreak = "";
		//        }
		//    }
		//    set
		//    {
		//        InitValue(value);
		//    }
		//}

		public void InitValue(MatchScore.MatchSet set)
		{
			if (set.SetPlayed)
			{
				WinnerGames = set.WGames.ToString();
				WinnerTiebreak = set.WTiebreak.ToString();
				LoserGames = set.LGames.ToString();
				LoserTiebreak = set.LTiebreak.ToString();
			}
			else
			{
				WinnerGames = "";
				WinnerTiebreak = "";
				LoserGames = "";
				LoserTiebreak = "";
			}
		}
Example #2
0
			//internal void MatchScore_Saved(object sender, Csla.Core.SavedEventArgs e)
			//{
			//    //MatchScore parent = (MatchScore)e.NewObject;
			//    MarkOld();
			//}

			internal MatchSet(int setNumber, MatchScore parent)
			{
				_setNumber = setNumber;
				_parent = parent;
			}
Example #3
0
		public void GetValue(MatchScore.MatchSet set)
		{
			set.WGames = tobyte(WinnerGames);
			set.LGames = tobyte(LoserGames);
			set.WTiebreak = tobyte(WinnerTiebreak);
			set.LTiebreak = tobyte(LoserTiebreak);
		}