private void frmUpd_Configs_Load(object sender, EventArgs e) { try { ConfigsBO aConfigsBO = new ConfigsBO(); Configs aConfigs = aConfigsBO.Select_ByID(ID); txtAccessKey.Text = aConfigs.AccessKey; txtValue.Text = aConfigs.Value; cboStatus.Text = aConfigs.Status.ToString(); cboType.Text = aConfigs.Type.ToString(); cboGroup.Text = aConfigs.Group.ToString(); } catch (Exception ex) { MessageBox.Show("frmUpd_Configs.frmUpd_Configs_Load\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }