public Client(ClientDS.ClientTableRow client) { //Constructor try { if (client != null) { if (!client.IsClientNumberNull()) { this.mClientNumber = client.ClientNumber; } if (!client.IsDivisionNumberNull()) { this.mDivisionNumber = client.DivisionNumber; } if (!client.IsClientNameNull()) { this.mClientName = client.ClientName; } if (!client.IsTerminalCodeNull()) { this.mTerminalCode = client.TerminalCode; } if (!client.IsARNumberNull()) { this.mARNumber = client.ARNumber; } if (!client.IsStatusNull()) { this.mStatus = client.Status; } } } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new Client instance", ex); } }