コード例 #1
0
		/// <summary>
		/// Adds a goal to the match recording
		/// </summary>
		/// <param name="g">Goal to record</param>
		public void AddGoal(Goal g)
		{
			ScoredGoals.Add(g);
		}
コード例 #2
0
		public void AddGoal(Goal g)
		{
			Record.AddGoal(g);

			ListBoxItem item = new ListBoxItem();
			item.ToolTip = g.UITooltip;
			item.Content = g.UIForm;
			item.Tag = g; // reference back to goal

			GoalsList.Items.Add(item);
		}