Пример #1
0
        private void CardEditor_NewAttack_Button_Click(object sender, RoutedEventArgs e)
        {
            AttackEditor attackEditor = new AttackEditor(false, null);

            attackEditor.Left = this.Left;
            attackEditor.Top  = this.Top;
            attackEditor.ShowDialog();
            attacks = ReadDatabase.getListOfAttacks();
            RefreshAttacks();
        }
Пример #2
0
        private void CardEditor_Attack2Edit_Button_Click(object sender, RoutedEventArgs e)
        {
            AttackEditor attackEditor = new AttackEditor(true, currentAttack2);

            attackEditor.Left = this.Left;
            attackEditor.Top  = this.Top;
            attackEditor.ShowDialog();
            attacks = ReadDatabase.getListOfAttacks();
            RefreshTypes();
            RefreshAttacks();
        }