EditForm := XYDAGL_FUNC.TMAINFORM.Create(Self.Context);
?????? 这里用什么判断阿?(在delphi 用过if not Assigned(EditForm) then 但在平台上不管用)
begin
try
EditForm.Show;
EditForm.Parent := TabSheet;
finally
if EditForm.CloseSign = 1 then
EditForm.Free;
end;
end
else
EditForm.Free;
if not Assigned(EditForm) then
begin
EditForm := XYDAGL_FUNC.TMAINFORM.Create(Self.Context);
end;
try
EditForm.Show;
EditForm.Parent := TabSheet;
finally
if EditForm.CloseSign = 1 then
begin
EditForm.Free;
EditForm := nil;
end
end;
end
else
EditForm.Free;