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/Graphics/Controls/cc16_Countries.pas
2024-03-10 20:32:51 +03:00

19 lines
764 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.

// Модуль Controls - визуализация запросов к базе данных
uses GraphWPF,Controls,ABCDatabases;
begin
Window.Title := 'Модуль Controls - визуализация запросов к базе данных';
LeftPanel(150,Colors.Orange);
var l := SetMainControl.AsListView;
var страны := ЗаполнитьМассивСтран;
l.Fill(страны);
Button('Все').Click := procedure -> l.Fill(страны);
Button('Азия').Click := procedure ->
l.Fill(страны.Where(страна -> страна.Континент='Азия'));
Button('Сорт по населению').Click := procedure ->
l.Fill(страны.OrderByDescending(s -> s.Население));
end.