public ucDialogAddBookForBorrow(ucDialogBill ucBillDialog) { InitializeComponent(); this.tlBll = new TaiLieuBLL(); this.ucBillDialog = ucBillDialog; setDataForGridView(ucBillDialog.getDtCreateBorrows()); }
public ucDialogReNewBooks(ucDialogBill ucBooksDialog) { InitializeComponent(); this.pmBLL = new PhieuMuonBLL(); this.tlBll = new TaiLieuBLL(); this.ucBooksDialog = ucBooksDialog; this.selectBookHistoryId = ucBooksDialog.SelectBookHistoryId; setInfoDialog(selectBookHistoryId); }
private void bntbntBooksManager_Click(object sender, EventArgs e) { if (grvBanDoc.SelectedRowsCount > 0 && idMemberSelect > 0) { Common.hidenParentForm(this); ucDialogBill uc = new ucDialogBill(this); form = new FormDialog(uc); form.WindowState = FormWindowState.Maximized; form.Size = new Size(uc.Width, uc.Height); form.Show(); } else { MessageBox.Show("Chưa chọn bản ghi nào", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }