private void addCardBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addCardBtnActionPerformed
String cardName = JOptionPane.showInputDialog(this, "Введите название новой карты");
if(cardName != null) {
try {
DirectoryDiscountCardType cardDirectory = DirectoryLocator.getDirectory(DirectoryDiscountCardType.class);
SelectorEditableExceptional<DirectoryDiscountCardTypeItem> items = cardDirectory.getItems();
DirectoryItemDetails details = new DirectoryItemDetails(0, cardName);
items.append(new DirectoryDiscountCardTypeItem(details));
cardList.removeListSelectionListener(cardSelectionChanger);