コード例 #1
0
        public void DeleteProbability(GameOutcome outcome)
        {
            GameOutcomeProbabilityControl control = this.outcomeProbabilityControls.FirstOrDefault(opc => opc.OutcomeName.Equals(outcome.Name));

            if (control != null)
            {
                this.outcomeProbabilityControls.Remove(control);
            }
        }
コード例 #2
0
 public void AddProbability(GameOutcomeProbabilityControl control)
 {
     this.outcomeProbabilityControls.Add(control);
 }