예제 #1
0
        private void LoadComboBoxLoaiPhong()
        {
            try
            {
                DataTable dtTableLoaiPhong = new DataTable();
                dtTableLoaiPhong = loaiPhongBUS.GetAll();

                cbo_LoaiPhong.DataSource    = dtTableLoaiPhong;
                cbo_LoaiPhong.ValueMember   = "MA_LOAI_PHONG";
                cbo_LoaiPhong.DisplayMember = "TEN_LOAI_PHONG";
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }