コード例 #1
0
 private void frmBookTitles_Load(object sender, EventArgs e)
 {
     m_AuthorData    = m_AuthorExecute.getAuthorDataFromDatabase();
     m_BookGenreData = m_BookGenreExecute.getBookGenreDataFromDatabase();
     //Binding data
     chkCmbAuthorName.Properties.DataSource    = m_AuthorData;
     chkCmbAuthorName.Properties.DisplayMember = "TenTG";
     chkCmbAuthorName.Properties.ValueMember   = "MaTG";
     //Binding data
     lkBookGenreName.Properties.DataSource    = m_BookGenreData;
     lkBookGenreName.Properties.DisplayMember = "TenTL";
     lkBookGenreName.Properties.ValueMember   = "MaTL";
     //
     m_BookTitlesData             = m_BookTitlesExecute.getBookTitlesDataFromDatabase();
     grdListBookTitles.DataSource = m_BookTitlesData;
 }
コード例 #2
0
 private void frmBookSearch_Load(object sender, EventArgs e)
 {
     //
     m_AuthorData = m_AuthorExecute.getAuthorDataFromDatabase();
     lkAuthorName.Properties.DataSource    = m_AuthorData;
     lkAuthorName.Properties.DisplayMember = "TenTG";
     lkAuthorName.Properties.ValueMember   = "MaTG";
     //
     m_BookGenreData = m_BookGenreExecute.getBookGenreDataFromDatabase();
     lkBookGenreName.Properties.DataSource    = m_BookGenreData;
     lkBookGenreName.Properties.DisplayMember = "TenTL";
     lkBookGenreName.Properties.ValueMember   = "MaTL";
     //
     m_PublisherData = m_PublisherExecute.getPublisherDataFromDatabase();
     lkPublisherName.Properties.DataSource    = m_PublisherData;
     lkPublisherName.Properties.DisplayMember = "TenNXB";
     lkPublisherName.Properties.ValueMember   = "MaNXB";
     //
     m_BookData = m_BookExecute.GetBookDataByRuleFromDatabase(txtContentSearch.Text, lkAuthorName.Text,
                                                              lkBookGenreName.Text, lkPublisherName.Text, (int)spYear.Value, (int)spQuatityLimit.Value, (int)spPrice.Value);
     grdListBook.DataSource = m_BookData;
 }
コード例 #3
0
 private void frmAuthor_Load(object sender, EventArgs e)
 {
     m_AuthorData             = m_AuthorExecute.getAuthorDataFromDatabase();
     grdListAuthor.DataSource = m_AuthorData;
 }