/// <summary> /// Adds a goal to the match recording /// </summary> /// <param name="g">Goal to record</param> public void AddGoal(Goal g) { ScoredGoals.Add(g); }
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); }