コード例 #1
0
 private void cmbMonHoc_SelectedIndexChanged(object sender, EventArgs e)
 {
     ThreadBUS tbus = new ThreadBUS();
     DataTable dt = new DataTable();
     string a = cmbMonHoc.SelectedItem.ToString();
     lstDanhSachThread.DataSource = tbus.LayDanhSach(cmbMonHoc.Text);
     lstDanhSachThread.ValueMember = "ThreadID";
     lstDanhSachThread.DisplayMember = "Title";
 }
コード例 #2
0
        private void cmbMonHoc_SelectedIndexChanged(object sender, EventArgs e)
        {
            ThreadBUS tbus = new ThreadBUS();
            DataTable dt   = new DataTable();
            string    a    = cmbMonHoc.SelectedItem.ToString();

            lstDanhSachThread.DataSource    = tbus.LayDanhSach(cmbMonHoc.Text);
            lstDanhSachThread.ValueMember   = "ThreadID";
            lstDanhSachThread.DisplayMember = "Title";
        }
コード例 #3
0
        void ListDSThreadInit()
        {
            ThreadBUS tbus = new ThreadBUS();
            DataTable dt   = new DataTable();
            string    a    = cmbMonHoc.SelectedItem.ToString();

            lstDanhSachThread.DataSource    = tbus.LayDanhSach(cmbMonHoc.Text);
            lstDanhSachThread.ValueMember   = "ThreadID";
            lstDanhSachThread.DisplayMember = "Title";
        }
コード例 #4
0
        void DanhSachThreadMoiInit()
        {
            ThreadBUS tbus = new ThreadBUS();

            tbDanhSachThread = tbus.LayBang();
            DataTable dt = new DataTable();

            dt = tbus.LayDanhSach(612557);
            if (dt.Rows.Count > 0)
            {
                dtgvDSNewThread.Rows.Add(dt.Rows.Count);
            }
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                dtgvDSNewThread.Rows[i].Cells["MonHoc"].Value      = dt.Rows[i][0];
                dtgvDSNewThread.Rows[i].Cells["TieuDe"].Value      = dt.Rows[i][1];
                dtgvDSNewThread.Rows[i].Cells["NgayCapNhat"].Value = dt.Rows[i][2];
            }
        }
コード例 #5
0
 void ListDSThreadInit()
 {
     ThreadBUS tbus = new ThreadBUS();
     DataTable dt = new DataTable();
     string a = cmbMonHoc.SelectedItem.ToString();
     lstDanhSachThread.DataSource = tbus.LayDanhSach(cmbMonHoc.Text);
     lstDanhSachThread.ValueMember = "ThreadID";
     lstDanhSachThread.DisplayMember = "Title";
 }