Form.ShowModal(
procedure(ModalResult: TModalResult)
begin
if ModalResult = mrok then
begin
این قسمت بعد از بسته شده فرم اجرا میشه
end;
end);