public receiptType() { provider = new businessobjectType(); provider.address = new addressType(); }
private void f_SetProviderControlsFromEntity(businessobjectType provider = null) { if (provider == null) provider = Receipt.provider; tbCompanyName.Text = provider.name; tbCompanyRegNumber.Text = provider.companyregnum; tbCompanyTaxNumber.Text = provider.vatregnum; var address = provider.address; if (address != null) tbStreet.Text = address.street; tbCity.Text = address.city; tbZIP.Text = address.zip; cbCountry.Text = string.IsNullOrEmpty(address.country) ? "Slovensko" : address.country; }