procedure TForm1.Button2Click(Sender: TObject);
begin
try
DCOMCOnnection1.Connected:=true;
DCOMCOnnection2.Connected:=true;
DCOMCOnnection3.Connected:=true;
CLientdataset1.data:=Dcomconnection1.Appserver.GetGoods;
CLientdataset2.data:=Dcomconnection2.Appserver.GetPays;
CLientdataset3.data:=Dcomconnection3.Appserver.GetDelivery;
Button1.Enabled:=true;
except
Button1.Enabled:=false;
ShowMessage('Один из серверных объектов недоступен');
end;
DCOMCOnnection1.Connected:=false;
DCOMCOnnection2.Connected:=false;
DCOMCOnnection3.Connected:=false;
end;