/// <summary> /// For however many times /// Add a new Attack to the Attacks list /// </summary> /// <param name="addAttackWindow"></param> private void AddAttackToList(AddAttackWindow addAttackWindow) { for (int i = 0; i < addAttackWindow.MultiAttackAmount; i++) { Attacks.Add(addAttackWindow.NewAttack); } }
/// <summary> /// Open Add Attack window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddAttack_Click(object sender, RoutedEventArgs e) { AddAttackWindow addAttack = new AddAttackWindow(); this.ParticipantChanged += addAttack.OnParticipantChanged; addAttack.AttackCreated += this.OnAttackCreated; addAttack.Show(); addAttack.AddTriggeredBy(this); }