Esempio n. 1
0
        private void loadLevelByLopID(int iLop)
        {
            boLop = new BO_LOP();
            DataTable tbl = new DataTable();

            try
            {
                tbl = boLop.LoadLevelByLopID(iLop);
                if (tbl.Rows.Count > 0)
                {
                    LevelID             = int.Parse(tbl.Rows[0]["LEV_ID"].ToString());
                    lookLevel.EditValue = tbl.Rows[0]["LEV_Number"];
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Lỗi hiển thị cấp độ: " + ex.Message, "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }