Example #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();
            }
        }
Example #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();
            }
        }
Example #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();
     }
 }
Example #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();
     }
 }