//end placeholders

        private void frmAddNewTitles_Load(object sender, EventArgs e)
        {
            titlesBUS = new titlesBUS();
            typeBUS   = new typeBUS();
            authBUS   = new authBUS();
            loadDataInto_ListBox();
        }
예제 #2
0
 private void frmModTitles_Load(object sender, EventArgs e)
 {
     authBUS  = new authBUS();
     titleBUS = new titlesBUS();
     typeBUS  = new typeBUS();
     loadDataIntoForm();
     loadAuthInto_ListBox();
 }
예제 #3
0
        private void LoadTitlesInto_ComboBox(frmModBook frmModBook)
        {
            titlesBUS = new titlesBUS();
            List <titlesDTO> listTitles = titlesBUS.selectedTitleall();

            if (frmModBook.cbTitleName == null)
            {
                MessageBox.Show("DB chưa có thông tin của bất cứ đầu sách nào");
                return;
            }
            frmModBook.cbTitleName.DataSource    = new BindingSource(listTitles, String.Empty);
            frmModBook.cbTitleName.DisplayMember = "TenDauSach";
            frmModBook.cbTitleName.ValueMember   = "MaDauSach";

            CurrencyManager myCurrencyManager = (CurrencyManager)this.BindingContext[frmModBook.cbTitleName.DataSource];

            myCurrencyManager.Refresh();

            if (frmModBook.cbTitleName.Items.Count > 0)
            {
                frmModBook.cbTitleName.SelectedIndex = 0;
            }
        }
예제 #4
0
 private void frmTitlesManage_Load(object sender, EventArgs e)
 {
     titlesBUS = new titlesBUS();
     LoadDataInto_DataGridViewOfTitle();
 }
예제 #5
0
 private void frmBooksManage_Load_1(object sender, EventArgs e)
 {
     titlesBUS = new titlesBUS();
     bookBUS   = new QLTVBUS.bookBUS();
     LoadDataInto_DataGridViewOfBook();
 }
예제 #6
0
 private void frmAddNewBooks_Load(object sender, EventArgs e)
 {
     addBookBUS = new bookBUS();
     titlesBUS  = new titlesBUS();
     LoadTitlesInto_ComboBox();
 }