Ejemplo n.º 1
0
        private void DodajAtak_Click(object sender, RoutedEventArgs e)
        {
            Attack attack = new Attack();

            _character.Attacks.Add(attack);
            AttackEditWindow wnd = new AttackEditWindow(attack);

            if (wnd.ShowDialog() == true)
            {
                Refresh();
            }
        }
Ejemplo n.º 2
0
        private void EdytujAtak_Click(object sender, RoutedEventArgs e)
        {
            if (listView1.SelectedItem == null)
            {
                MessageBox.Show("Wybierz jakiś atak żeby go edytować");
                return;
            }
            Attack           attack = (Attack)listView1.SelectedItem;
            AttackEditWindow wnd    = new AttackEditWindow(attack);

            if (wnd.ShowDialog() == true)
            {
                Refresh();
            }
        }
Ejemplo n.º 3
0
 private void EdytujAtak_Click(object sender, RoutedEventArgs e)
 {
     if (listView1.SelectedItem == null)
     {
         MessageBox.Show("Wybierz jakiś atak żeby go edytować");
         return;
     }
     Attack attack = (Attack)listView1.SelectedItem;
     AttackEditWindow wnd = new AttackEditWindow(attack);
     if (wnd.ShowDialog() == true)
     {
         Refresh();
     }
 }
Ejemplo n.º 4
0
 private void DodajAtak_Click(object sender, RoutedEventArgs e)
 {
     Attack attack = new Attack();
     _character.Attacks.Add(attack);
     AttackEditWindow wnd = new AttackEditWindow(attack);
     if (wnd.ShowDialog() == true)
     {
         Refresh();
     }
 }