private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
try {
DlgSetDirectionChoice dlg = new DlgSetDirectionChoice(MainWindow.mainWindow);
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
DirectionTypeDetails d = new DirectionTypeDetails();
d.id = 0;
d.title = "Введите название";
d.choice = dlg.getChoice();
directory.getItems().append(new DirectoryDirectionTypeItem(d));
setTable();