private void FillFormForUpdate() { CompanyMaster company = applicationFacade.GetCompanyById(this.CompanyId); if (company != null) { txtCompanyCode.Text = company.CompanyCode; txtCompanyName.Text = company.CompanyName; txtBillingPrefRating.Text = company.BillingPreferenceRating.ToString(); txtOrderPrefRating.Text = company.OrderPreferenceRating.ToString(); cbxDI.SelectedItem = company.IsDirect ? Enums.DI.Direct : Enums.DI.Indirect; cbxSSRequired.SelectedItem = company.StockSummaryRequired ? Enums.Choice.Yes : Enums.Choice.No; cbxStatus.SelectedItem = company.Status ? Enums.Status.Active : Enums.Status.Inactive; } }