//end placeholders private void frmAddNewTitles_Load(object sender, EventArgs e) { titlesBUS = new titlesBUS(); typeBUS = new typeBUS(); authBUS = new authBUS(); loadDataInto_ListBox(); }
private void btnMod_Click(object sender, EventArgs e) { authBUS = new authBUS(); titlesDTO titleDTO = new titlesDTO(); // to get MaDauSach int rowIndex = dgvTitlesManage.CurrentCell.RowIndex; titleDTO.MaDauSach = dgvTitlesManage.Rows[rowIndex].Cells[0].Value.ToString(); titleDTO.TenDauSach = dgvTitlesManage.Rows[rowIndex].Cells[1].Value.ToString(); //to get auth Code from DAUSACH_TACGIA //string authReferenceTitle = authBUS.selectedAuthReferenceToTitle(titlesDTO); frmModTitles frmMod = new frmModTitles(); DialogResult warning = new DialogResult(); warning = MessageBox.Show("Bạn có chắc chắn muốn sửa đầu sách này?", "Cảnh báo!", MessageBoxButtons.YesNo); if (warning == DialogResult.Yes) { frmMod.tbTitlesCode.Text = titleDTO.MaDauSach; frmMod.tbTitlesName.Text = titleDTO.TenDauSach; // MessageBox.Show(authReferenceTitle); // frmMod.lsbAuth.SelectedValue = authReferenceTitle; frmMod.tbTitlesCode.ReadOnly = true; frmMod.ShowDialog(); } else { return; } LoadDataInto_DataGridViewOfTitle(); }
private void frmModTitles_Load(object sender, EventArgs e) { authBUS = new authBUS(); titleBUS = new titlesBUS(); typeBUS = new typeBUS(); loadDataIntoForm(); loadAuthInto_ListBox(); }
private void frmAddNewAuths_Load(object sender, EventArgs e) { authBUS = new authBUS(); authDTO = new authDTO(); }
private void frmAuthsManage_Load(object sender, EventArgs e) { authBUS = new authBUS(); LoadDataInto_DatagridViewOfAuth(); }