private void maskReadMessInbox(DataGridView tbl, string clmName) { DataGridViewSelectedRowCollection selectedRows = tbl.SelectedRows; if (selectedRows.Count > 0) { foreach (DataGridViewRow row in selectedRows) { bool result = HopThuDenDAO.updateTinhTrangMessInbox(row.Cells[clmName].Value.ToString()); } } else { MessageBox.Show("Ban chua chon tin nhan."); } }
private void removeMessInbox(DataGridView tbl, string clmName) { DataGridViewSelectedRowCollection selectedRows = tbl.SelectedRows; if (selectedRows.Count > 0) { if (MessageBox.Show("Ban co chac chan xoa vinh vien nhung tin nhan nay ?", "Xac Nhan Xoa .", MessageBoxButtons.YesNo) == DialogResult.Yes) { foreach (DataGridViewRow row in selectedRows) { bool result = HopThuDenDAO.removeMesssInbox(row.Cells[clmName].Value.ToString()); } } } else { MessageBox.Show("Ban chua chon tin nhan."); } }
private void showSearchNormalDeletedMessInboxByNoiDungTinNhan(string noiDungMess) { DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNoiDungTinNhan(noiDungMess); tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox; }
private void showSearchNormalMessDeletedInboxBySoDienThoai(string nbPhone) { DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNbPhone(nbPhone); tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox; }
private void showSearchSytaxMessDeletedInboxByCuPhap(string cuPhap) { DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessDeletedInboxByCuPhap(cuPhap); tblSyntaxMessDeletedInbox.DataSource = tableShowSyntaxMessInbox; }
private void showSearchSytaxMessInboxByNoiDungTinNhan(string noiDungMess) { DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNoiDungTinNhan(noiDungMess); tblSyntaxMess.DataSource = tableShowSyntaxMessInbox; }
public void showNormalMessDeletedInbox() { DataTable tableNormalMessDeletedInbox = HopThuDenDAO.getAllNormalMessDeletedInbox(); tblNormalMessDeletedInbox.DataSource = tableNormalMessDeletedInbox; }
private void showSearchSytaxMessInboxBySoDienThoai(string nbPhone) { DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNbPhone(nbPhone); tblSyntaxMess.DataSource = tableShowSyntaxMessInbox; }
public void showSyntaxMessDeletedInbox() { DataTable tableSyntaxMessDeletedInbox = HopThuDenDAO.getAllSyntaxMessDeletedInbox(); tblSyntaxMessDeletedInbox.DataSource = tableSyntaxMessDeletedInbox; }