Пример #1
0
        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.");
            }
        }
Пример #2
0
        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.");
            }
        }
Пример #3
0
        private void showSearchNormalDeletedMessInboxByNoiDungTinNhan(string noiDungMess)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNoiDungTinNhan(noiDungMess);

            tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Пример #4
0
        private void showSearchNormalMessDeletedInboxBySoDienThoai(string nbPhone)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNbPhone(nbPhone);

            tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Пример #5
0
        private void showSearchSytaxMessDeletedInboxByCuPhap(string cuPhap)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessDeletedInboxByCuPhap(cuPhap);

            tblSyntaxMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Пример #6
0
        private void showSearchSytaxMessInboxByNoiDungTinNhan(string noiDungMess)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNoiDungTinNhan(noiDungMess);

            tblSyntaxMess.DataSource = tableShowSyntaxMessInbox;
        }
Пример #7
0
        public void showNormalMessDeletedInbox()
        {
            DataTable tableNormalMessDeletedInbox = HopThuDenDAO.getAllNormalMessDeletedInbox();

            tblNormalMessDeletedInbox.DataSource = tableNormalMessDeletedInbox;
        }
Пример #8
0
        private void showSearchSytaxMessInboxBySoDienThoai(string nbPhone)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNbPhone(nbPhone);

            tblSyntaxMess.DataSource = tableShowSyntaxMessInbox;
        }
Пример #9
0
        public void showSyntaxMessDeletedInbox()
        {
            DataTable tableSyntaxMessDeletedInbox = HopThuDenDAO.getAllSyntaxMessDeletedInbox();

            tblSyntaxMessDeletedInbox.DataSource = tableSyntaxMessDeletedInbox;
        }