Ejemplo n.º 1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (comboBox1.SelectedItem != null && comboBox2.SelectedItem != null)
     {
         AttackWindow wnd = new AttackWindow((Character)comboBox1.SelectedItem, (Character)comboBox2.SelectedItem, _battle);
         wnd.Show();
         Close();
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (comboBox1.SelectedItem != null && comboBox2.SelectedItem != null)
     {
         AttackWindow wnd = new AttackWindow((Character)comboBox1.SelectedItem, (Character)comboBox2.SelectedItem, _battle);
         wnd.Show();
         Close();
     }
 }
Ejemplo n.º 3
0
 private void AttackMember_Click(object sender, RoutedEventArgs e)
 {
     if (listView1.SelectedItem != null)
     {
         Character    defender = (Character)listView1.SelectedItem;
         AttackWindow wnd      = new AttackWindow(_battle.ActiveMember, defender, _battle);
         if (wnd.ShowDialog() == true)
         {
             listView1.Items.Refresh();
         }
     }
 }