//end placeholders private void frmAddNewTitles_Load(object sender, EventArgs e) { titlesBUS = new titlesBUS(); typeBUS = new typeBUS(); authBUS = new authBUS(); loadDataInto_ListBox(); }
private void frmModTitles_Load(object sender, EventArgs e) { authBUS = new authBUS(); titleBUS = new titlesBUS(); typeBUS = new typeBUS(); loadDataIntoForm(); loadAuthInto_ListBox(); }
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; } }
private void frmTitlesManage_Load(object sender, EventArgs e) { titlesBUS = new titlesBUS(); LoadDataInto_DataGridViewOfTitle(); }
private void frmBooksManage_Load_1(object sender, EventArgs e) { titlesBUS = new titlesBUS(); bookBUS = new QLTVBUS.bookBUS(); LoadDataInto_DataGridViewOfBook(); }
private void frmAddNewBooks_Load(object sender, EventArgs e) { addBookBUS = new bookBUS(); titlesBUS = new titlesBUS(); LoadTitlesInto_ComboBox(); }