Ejemplo n.º 1
0
        private void AttackOpportunity_Click(object sender, RoutedEventArgs e)
        {
            AttackCustomWindow wnd = null;

            if (listView1.SelectedItems.Count == 2)
            {
                wnd = new AttackCustomWindow(_battle, (Character)listView1.SelectedItems[0], (Character)listView1.SelectedItems[1]);
                wnd.Show();
                return;
            }
            if (listView1.SelectedItems.Count == 1 && listView1.SelectedItems[0] != _battle.ActiveMember)
            {
                wnd = new AttackCustomWindow(_battle, (Character)listView1.SelectedItems[0], _battle.ActiveMember);
                wnd.Show();
                return;
            }
        }
Ejemplo n.º 2
0
        private void AttackCustom_Click(object sender, RoutedEventArgs e)
        {
            AttackCustomWindow wnd = new AttackCustomWindow(_battle);

            wnd.Show();
        }