pascalabcnet/InstallerSamples/Graphics/Controls/cc16_Countries.pas
2020-08-01 00:13:27 +03:00

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