работа с формой....
This commit is contained in:
parent
aad104ad8e
commit
facad042be
@ -1,37 +1,54 @@
|
|||||||
import Drawnings.DrawningAirbus;
|
import Drawnings.DrawningAirbus;
|
||||||
import Generics.AirbusGenericCollection;
|
import Generics.AirbusGenericCollection;
|
||||||
|
import Generics.AirbusGenericStorage;
|
||||||
import MovementStrategy.DrawningObjectAirbus;
|
import MovementStrategy.DrawningObjectAirbus;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
import java.util.LinkedList;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
import javax.swing.event.ListSelectionEvent;
|
||||||
|
import javax.swing.event.ListSelectionListener;
|
||||||
|
|
||||||
public class FormAirbusCollection extends JFrame {
|
public class FormAirbusCollection extends JFrame {
|
||||||
|
|
||||||
Canvas canvas;
|
private Canvas canvas;
|
||||||
|
private AirbusGenericStorage _storage;
|
||||||
|
|
||||||
static int pictureBoxWidth = 650;
|
static int pictureBoxWidth = 650;
|
||||||
static int pictureBoxHeight = 460;
|
static int pictureBoxHeight = 460;
|
||||||
JButton buttonAddAirbus;
|
|
||||||
JButton buttonDeleteAirbus;
|
|
||||||
JButton buttonUpdate;
|
|
||||||
// открыть форму генерации
|
|
||||||
private JButton buttonGenerateAirbus;
|
private JButton buttonGenerateAirbus;
|
||||||
|
private JButton buttonUpdate;
|
||||||
|
private JButton buttonAddAirbus;
|
||||||
|
private JButton buttonDeleteAirbus;
|
||||||
|
|
||||||
|
// работа с наборами
|
||||||
|
private JButton buttonAddStorage;
|
||||||
|
private JButton buttonDeleteStorage;
|
||||||
|
private JTextField textFieldStorage;
|
||||||
|
private JList<String> listStorage;
|
||||||
|
private DefaultListModel<String> listModel;
|
||||||
|
|
||||||
|
private JTextField textFieldNumber;
|
||||||
|
|
||||||
JTextField textFieldNumber = new JTextField();
|
|
||||||
private AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> _airbus;
|
private AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> _airbus;
|
||||||
|
|
||||||
FormAirbusCollection() {
|
FormAirbusCollection() {
|
||||||
|
listModel = new DefaultListModel<String>();
|
||||||
|
listStorage = new JList<String>(listModel);
|
||||||
|
//_airbus = new AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> (pictureBoxWidth, pictureBoxHeight);
|
||||||
|
_storage = new AirbusGenericStorage(pictureBoxWidth, pictureBoxHeight);
|
||||||
canvas = new Canvas();
|
canvas = new Canvas();
|
||||||
|
|
||||||
JFrame frame = new JFrame("Коллекция аэробусов");
|
JFrame frame = new JFrame("Коллекция аэробусов");
|
||||||
_airbus = new AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> (pictureBoxWidth, pictureBoxHeight);
|
|
||||||
canvas._airbus = _airbus;
|
|
||||||
|
|
||||||
|
buttonAddStorage = new JButton("Добавить набор");
|
||||||
|
buttonAddStorage.setMargin(new Insets(0, 0, 0, 0));
|
||||||
|
buttonDeleteStorage = new JButton("Удалить набор");
|
||||||
|
buttonDeleteStorage.setMargin(new Insets(0, 0, 0, 0));
|
||||||
buttonAddAirbus = new JButton("Добавить аэробус");
|
buttonAddAirbus = new JButton("Добавить аэробус");
|
||||||
buttonAddAirbus.setMargin(new Insets(0, 0, 0, 0));
|
buttonAddAirbus.setMargin(new Insets(0, 0, 0, 0));
|
||||||
textFieldNumber = new JTextField();
|
|
||||||
buttonDeleteAirbus = new JButton("Удалить аэробус");
|
buttonDeleteAirbus = new JButton("Удалить аэробус");
|
||||||
buttonDeleteAirbus.setMargin(new Insets(0, 0, 0, 0));
|
buttonDeleteAirbus.setMargin(new Insets(0, 0, 0, 0));
|
||||||
buttonUpdate = new JButton("Обновить");
|
buttonUpdate = new JButton("Обновить");
|
||||||
@ -39,11 +56,18 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
buttonGenerateAirbus = new JButton("Форма генерации");
|
buttonGenerateAirbus = new JButton("Форма генерации");
|
||||||
buttonGenerateAirbus.setMargin(new Insets(0,0,0,0));
|
buttonGenerateAirbus.setMargin(new Insets(0,0,0,0));
|
||||||
|
|
||||||
|
textFieldStorage = new JTextField();
|
||||||
|
textFieldNumber = new JTextField();
|
||||||
|
|
||||||
setSize(800,500);
|
setSize(800,500);
|
||||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
setLayout(null);
|
setLayout(null);
|
||||||
|
|
||||||
buttonAddAirbus.setBounds(pictureBoxWidth, 20, 120, 25);
|
textFieldStorage.setBounds(pictureBoxWidth, 20, 120, 25);
|
||||||
|
buttonAddStorage.setBounds(pictureBoxWidth, textFieldStorage.getY()+30, 120, 25);
|
||||||
|
listStorage.setBounds(pictureBoxWidth, buttonAddStorage.getY()+30, 120, 120);
|
||||||
|
buttonDeleteStorage.setBounds(pictureBoxWidth, listStorage.getY()+125, 120, 25);
|
||||||
|
buttonAddAirbus.setBounds(pictureBoxWidth, buttonDeleteStorage.getY()+30, 120, 25);
|
||||||
textFieldNumber.setBounds(pictureBoxWidth, buttonAddAirbus.getY()+30, 120, 25);
|
textFieldNumber.setBounds(pictureBoxWidth, buttonAddAirbus.getY()+30, 120, 25);
|
||||||
buttonDeleteAirbus.setBounds(pictureBoxWidth, textFieldNumber.getY()+30, 120, 25);
|
buttonDeleteAirbus.setBounds(pictureBoxWidth, textFieldNumber.getY()+30, 120, 25);
|
||||||
buttonUpdate.setBounds(pictureBoxWidth, buttonDeleteAirbus.getY()+30, 120, 25);
|
buttonUpdate.setBounds(pictureBoxWidth, buttonDeleteAirbus.getY()+30, 120, 25);
|
||||||
@ -51,6 +75,10 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
canvas.setBounds(0,0,pictureBoxWidth, pictureBoxHeight);
|
canvas.setBounds(0,0,pictureBoxWidth, pictureBoxHeight);
|
||||||
|
|
||||||
add(canvas);
|
add(canvas);
|
||||||
|
add(buttonAddStorage);
|
||||||
|
add(listStorage);
|
||||||
|
add(textFieldStorage);
|
||||||
|
add(buttonDeleteStorage);
|
||||||
add(buttonAddAirbus);
|
add(buttonAddAirbus);
|
||||||
add(buttonDeleteAirbus);
|
add(buttonDeleteAirbus);
|
||||||
add(buttonUpdate);
|
add(buttonUpdate);
|
||||||
@ -59,12 +87,77 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
|
||||||
// логика формы
|
// логика формы
|
||||||
|
buttonAddStorage.addActionListener(AddStorageListener);
|
||||||
|
buttonDeleteStorage.addActionListener(DeleteStorageListener);
|
||||||
|
listStorage.addListSelectionListener(listSelectionListener);
|
||||||
|
|
||||||
buttonAddAirbus.addActionListener(AddAirbusListener);
|
buttonAddAirbus.addActionListener(AddAirbusListener);
|
||||||
buttonDeleteAirbus.addActionListener(DeleteAirbusListener);
|
buttonDeleteAirbus.addActionListener(DeleteAirbusListener);
|
||||||
buttonUpdate.addActionListener(UpdateAirbusListener);
|
buttonUpdate.addActionListener(UpdateAirbusListener);
|
||||||
buttonGenerateAirbus.addActionListener(OpenGenerationForm);
|
buttonGenerateAirbus.addActionListener(OpenGenerationForm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// секция работы с наборами
|
||||||
|
private void ReloadObject()
|
||||||
|
{
|
||||||
|
int index = listStorage.getSelectedIndex();
|
||||||
|
listModel.clear();
|
||||||
|
for (int i = 0; i < _storage.Keys().size(); i++)
|
||||||
|
{
|
||||||
|
listModel.addElement(_storage.Keys().get(i));
|
||||||
|
}
|
||||||
|
for (String key : _storage.Keys()) {
|
||||||
|
listModel.addElement(key);
|
||||||
|
}
|
||||||
|
if (listModel.size() > 0 && (index == -1 || index >= listModel.size()))
|
||||||
|
{
|
||||||
|
listStorage.setSelectedIndex(0);
|
||||||
|
}
|
||||||
|
else if (listModel.size() > 0 && index > -1 && index < listModel.size())
|
||||||
|
{
|
||||||
|
listStorage.setSelectedIndex(index);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// добавить набор
|
||||||
|
ActionListener AddStorageListener = new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
if (textFieldStorage.getText().length() == 0)
|
||||||
|
{
|
||||||
|
JOptionPane.showMessageDialog(null, "Не все данные заполнены", "Информация", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_storage.AddSet(textFieldStorage.getText());
|
||||||
|
ReloadObject();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// выбрать
|
||||||
|
ListSelectionListener listSelectionListener = new ListSelectionListener() {
|
||||||
|
// public т.к. в интерфейсе метод тоже public
|
||||||
|
public void valueChanged(ListSelectionEvent e) {
|
||||||
|
canvas.repaint();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// удалить набор
|
||||||
|
ActionListener DeleteStorageListener = new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
if (listStorage.getSelectedIndex() == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (JOptionPane.showOptionDialog(null, "Удалить " + listStorage.getSelectedValue() + "?", "Удаление", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Да", "Нет"}, "Да")
|
||||||
|
== JOptionPane.NO_OPTION)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_storage.DelSet(listStorage.getSelectedValue());
|
||||||
|
ReloadObject();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// конец секции работы с наборами
|
||||||
|
|
||||||
ActionListener OpenGenerationForm = new ActionListener()
|
ActionListener OpenGenerationForm = new ActionListener()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
@ -74,6 +167,7 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// добавить аэробус в набор
|
||||||
ActionListener AddAirbusListener = new ActionListener()
|
ActionListener AddAirbusListener = new ActionListener()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
@ -106,26 +200,30 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
int pos;
|
|
||||||
try {
|
if (listStorage.getSelectedIndex() == -1)
|
||||||
pos = Integer.parseInt(textFieldNumber.getText());
|
|
||||||
} catch (Exception ex) {
|
|
||||||
JOptionPane.showMessageDialog(null, "Ошибка ввода", "Ошибка", JOptionPane.ERROR_MESSAGE);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
var obj = _storage.get(listStorage.getSelectedValue());
|
||||||
|
if (obj == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Object[] options= {"да", "нет"};
|
Object[] options= {"да", "нет"};
|
||||||
if (JOptionPane.showOptionDialog(null, "Удалить объект?", "Удаление", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Да", "Нет"}, "Да")
|
if (JOptionPane.showOptionDialog(null, "Удалить объект?", "Удаление", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Да", "Нет"}, "Да")
|
||||||
== JOptionPane.NO_OPTION)
|
== JOptionPane.NO_OPTION)
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
if (_airbus.Remove(pos) != false)
|
try {
|
||||||
{
|
int pos = Integer.parseInt(textFieldStorage.getText());
|
||||||
_airbus.ShowAirbus();
|
var deleted = obj.Remove(pos);
|
||||||
|
// добавить в список удалёнок
|
||||||
|
JOptionPane.showMessageDialog(null, "Объект удален", "Информация", JOptionPane.INFORMATION_MESSAGE);
|
||||||
canvas.repaint();
|
canvas.repaint();
|
||||||
JOptionPane.showMessageDialog(null, "Объект удален");
|
}
|
||||||
} else {
|
catch (Exception ex)
|
||||||
JOptionPane.showMessageDialog(null, "Не удалось удалить объект", "Ошибка", JOptionPane.ERROR_MESSAGE);
|
{
|
||||||
|
JOptionPane.showMessageDialog(null, "Не удалось удалить объект", "Информация", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -140,16 +238,26 @@ public class FormAirbusCollection extends JFrame {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Canvas extends JComponent {
|
class Canvas extends JComponent {
|
||||||
public AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> _airbus;
|
public AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> airbus;
|
||||||
|
|
||||||
public Canvas() {
|
public Canvas() {
|
||||||
|
airbus = _airbus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void paintComponent(Graphics g) {
|
public void paintComponent(Graphics g) {
|
||||||
super.paintComponents(g);
|
super.paintComponents(g);
|
||||||
if (_airbus.ShowAirbus() != null) {
|
|
||||||
g.drawImage(_airbus.ShowAirbus(), 0, 0, this);
|
if (listStorage.getSelectedIndex() == -1)
|
||||||
}
|
return;
|
||||||
|
|
||||||
|
var obj = _storage.get(listStorage.getSelectedValue());
|
||||||
|
|
||||||
|
if (obj == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (airbus.ShowAirbus() != null)
|
||||||
|
g.drawImage(airbus.ShowAirbus(), 0, 0, this);
|
||||||
|
|
||||||
super.repaint();
|
super.repaint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,27 +77,17 @@ public class AirbusGenericCollection<T extends DrawningAirbus, U extends IMoveab
|
|||||||
int x = _pictureWidth / _placeSizeWidth - 1;
|
int x = _pictureWidth / _placeSizeWidth - 1;
|
||||||
int y = _pictureHeight / _placeSizeHeight - 1;
|
int y = _pictureHeight / _placeSizeHeight - 1;
|
||||||
|
|
||||||
for (int i = 0; i < _collection.Count; ++i)
|
for (var _airbus : _collection.GetAirbus())
|
||||||
{
|
{
|
||||||
DrawningAirbus _airbus = _collection.Get(i);
|
if (_airbus != null) {
|
||||||
if (_airbus == null)
|
|
||||||
{
|
|
||||||
--x;
|
|
||||||
if (x < 0)
|
if (x < 0)
|
||||||
{
|
{
|
||||||
x = _pictureWidth / _placeSizeWidth - 1;
|
x = _pictureWidth / _placeSizeWidth - 1;
|
||||||
--y;
|
--y;
|
||||||
}
|
}
|
||||||
continue;
|
|
||||||
}
|
|
||||||
_airbus.SetPosition(_placeSizeWidth * x, _placeSizeHeight * y);
|
_airbus.SetPosition(_placeSizeWidth * x, _placeSizeHeight * y);
|
||||||
_airbus.DrawTransport(gr);
|
_airbus.DrawTransport(gr);
|
||||||
--x;
|
--x;
|
||||||
// новая строка
|
|
||||||
if (x < 0)
|
|
||||||
{
|
|
||||||
x = _pictureWidth / _placeSizeWidth - 1;
|
|
||||||
--y;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
52
src/Generics/AirbusGenericStorage.java
Normal file
52
src/Generics/AirbusGenericStorage.java
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
package Generics;
|
||||||
|
|
||||||
|
import Drawnings.DrawningAirbus;
|
||||||
|
import MovementStrategy.DrawningObjectAirbus;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class AirbusGenericStorage {
|
||||||
|
HashMap <String, AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus>> _airbusStorages;
|
||||||
|
public List<String> Keys() {
|
||||||
|
return _airbusStorages.keySet().stream().toList();
|
||||||
|
}
|
||||||
|
private int _pictureWidth;
|
||||||
|
private int _pictureHeight;
|
||||||
|
|
||||||
|
public AirbusGenericStorage(int pictureWidth, int pictureHeight)
|
||||||
|
{
|
||||||
|
_airbusStorages = new HashMap<String, AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus>> ();
|
||||||
|
_pictureWidth = pictureWidth;
|
||||||
|
_pictureHeight = pictureHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddSet(String name)
|
||||||
|
{
|
||||||
|
if (_airbusStorages.containsKey(name))
|
||||||
|
// уже занят
|
||||||
|
return;
|
||||||
|
_airbusStorages.put(name, new AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus>(_pictureWidth, _pictureHeight));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DelSet(String name)
|
||||||
|
{
|
||||||
|
if (!_airbusStorages.containsKey(name))
|
||||||
|
return;
|
||||||
|
_airbusStorages.remove(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Доступ к набору
|
||||||
|
public AirbusGenericCollection<DrawningAirbus, DrawningObjectAirbus> get(String ind)
|
||||||
|
{
|
||||||
|
if (_airbusStorages.containsKey(ind))
|
||||||
|
return _airbusStorages.get(ind);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// вызов удалёнок
|
||||||
|
public DrawningObjectAirbus get(String iStorage, int iAirbus){
|
||||||
|
if (!_airbusStorages.containsKey(iStorage))
|
||||||
|
return null;
|
||||||
|
return _airbusStorages.get(iStorage).GetU(iAirbus);
|
||||||
|
}
|
||||||
|
}
|
@ -1,16 +1,23 @@
|
|||||||
package Generics;
|
package Generics;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
public class SetGeneric<T extends Object> {
|
public class SetGeneric<T extends Object> {
|
||||||
|
|
||||||
// список объектов
|
// список объектов
|
||||||
private Object[] _places;
|
private ArrayList<T> _places;
|
||||||
// кол-во объектов
|
// кол-во объектов
|
||||||
public int Count;
|
private int maxCount;
|
||||||
|
public int Count()
|
||||||
|
{
|
||||||
|
return _places.size();
|
||||||
|
};
|
||||||
|
|
||||||
public SetGeneric(int count)
|
public SetGeneric(int count)
|
||||||
{
|
{
|
||||||
_places = new Object[count];
|
_places = new ArrayList<>(count);
|
||||||
Count = _places.length;
|
maxCount = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Добавление объекта в набор
|
// Добавление объекта в набор
|
||||||
@ -22,46 +29,37 @@ public class SetGeneric<T extends Object> {
|
|||||||
// Добавление объекта в набор на конкретную позицию
|
// Добавление объекта в набор на конкретную позицию
|
||||||
public int Insert(T airbus, int position)
|
public int Insert(T airbus, int position)
|
||||||
{
|
{
|
||||||
if (position < 0 || position >= Count)
|
if (position < 0 || position >= maxCount || Count() >= maxCount)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int pos = position;
|
_places.add(position, airbus);
|
||||||
if (_places[position] != null) {
|
|
||||||
for (int i = position + 1; i < Count; ++i) {
|
|
||||||
if (_places[i] == null) {
|
|
||||||
pos = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (pos == Count-1)
|
|
||||||
return -1;
|
|
||||||
for (int i = pos; i > position; --i) {
|
|
||||||
_places[i] = _places[i - 1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_places[position] = airbus;
|
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Удаление объекта из набора с конкретной позиции
|
// Удаление объекта из набора с конкретной позиции
|
||||||
public boolean Remove(int position)
|
public boolean Remove(int position)
|
||||||
{
|
{
|
||||||
if (position < 0 || position >= Count)
|
if (position < 0 || position >= Count())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
_places[position] = null;
|
_places.remove(position);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Получение объекта из набора по позиции
|
// Получение объекта из набора по позиции
|
||||||
public T Get(int position)
|
public T Get(int position)
|
||||||
{
|
{
|
||||||
if (position < 0 || position >= Count)
|
if (position < 0 || position >= Count())
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (T)_places[position];
|
return _places.get(position);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<T> GetAirbus()
|
||||||
|
{
|
||||||
|
return _places;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user