This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
OldPascalProjects/!NewExecutors/СтраныGUI.pas
2024-03-10 20:32:51 +03:00

20 lines
726 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

uses Окна,Исполнители;
begin
// Создание запросов
var СтраныНаБуквуА := Страны.Выбрать(страна -> страна.Название.НачинаетсяНа('А'));
var СтраныАзии := Страны.Выбрать(страна -> страна.Континент = 'Азия');
var МаленькиеСтраны := Страны.Выбрать(страна -> страна.Население < 100000);
// Создание интерфейсных элементов
var ОкноСписка := СоздатьОкноСписка;
ОкноСписка.Отобразить(Страны);
CreateButton('Все', () -> ОкноСписка.Отобразить(Страны));
CreateButton('На букву А', () -> ОкноСписка.Отобразить(СтраныНаБуквуА));
CreateButton('Страны Азии', () -> ОкноСписка.Отобразить(СтраныАзии));
CreateButton('Маленькие Страны', () -> ОкноСписка.Отобразить(МаленькиеСтраны));
end.