Originally posted by donal horgan:
That parameter being either a reference to the DBAccess interface or else a reference to the data class -also called data -depending on whether it runs remoptely or locally respectively.
I then have an if statement ...
have a look at proxy or adapter
pattern.
passing (or "injecting") a proxy, that hides away the complexity of the possible remoteness of the datasource, will make reuse of the same GUI class simple.