예제 #1
0
 /// <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);
     }
 }
예제 #2
0
        /// <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);
        }