if button1.Enabled:=true then button2.Enabled:=false ;
if button1.Enabled=true then button2.Enabled:=false ;
button2.Enabled:= Not button1.Enabled;