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