private void LoadData() { var dtNameValue = new NameValue() { OrganizationId = lblOrganizationId.zToInt(), }.Select(); var dr = dtNameValue.Select(CS.NameId + " = " + (int)eNameValue.EmailId); txtEmail.Text = dr.Length > 0 ? dr[0][CS.Value].ToString() : ""; chkSameCustomerDifferantUser.Checked = CU.GetNameValue(eNameValue.SameCustomerDifferantUser).zToInt() == (int)eYesNo.Yes; chkCanUserSelectCourier.Checked = CU.GetNameValue(eNameValue.CanUserSelectCourier).zToInt() == (int)eYesNo.Yes; txtShipwayUsername.Text = CU.GetNameValue(eNameValue.ShipwayUsername); txtShipwayLicenceKey.Text = CU.GetNameValue(eNameValue.ShipwayLicenceKey); }