示例#1
0
 private void LoadVideoToGridView()
 {
     try
     {
         gridControl1.DataSource = null;
         gridControl1.DataSource = BLLVideoLibrary.Gets();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        private void FrmVideoShedule_Load(object sender, EventArgs e)
        {
            gridDetail.Enabled    = true;
            cbVideo.DataSource    = null;
            cbVideo.DataSource    = BLLVideoLibrary.Gets();
            cbVideo.DisplayMember = "Name";
            cbVideo.ValueMember   = "Id";

            cbLine.DataSource    = null;
            cbLine.DataSource    = BLLLine.GetLines_s(AccountSuccess.strListChuyenId.Split(',').Select(x => Convert.ToInt32(x)).ToList());
            cbLine.ValueMember   = "Machuyen";
            cbLine.DisplayMember = "TenChuyen";
        }