Example #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.");
            }
        }
Example #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.");
            }
        }
Example #3
0
        private void showSearchNormalDeletedMessInboxByNoiDungTinNhan(string noiDungMess)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNoiDungTinNhan(noiDungMess);

            tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Example #4
0
        private void showSearchNormalMessDeletedInboxBySoDienThoai(string nbPhone)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getNormalMessDeletedInboxByNbPhone(nbPhone);

            tblNormalMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Example #5
0
        private void showSearchSytaxMessDeletedInboxByCuPhap(string cuPhap)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessDeletedInboxByCuPhap(cuPhap);

            tblSyntaxMessDeletedInbox.DataSource = tableShowSyntaxMessInbox;
        }
Example #6
0
        private void showSearchSytaxMessInboxByNoiDungTinNhan(string noiDungMess)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNoiDungTinNhan(noiDungMess);

            tblSyntaxMess.DataSource = tableShowSyntaxMessInbox;
        }
Example #7
0
        public void showNormalMessDeletedInbox()
        {
            DataTable tableNormalMessDeletedInbox = HopThuDenDAO.getAllNormalMessDeletedInbox();

            tblNormalMessDeletedInbox.DataSource = tableNormalMessDeletedInbox;
        }
Example #8
0
        private void showSearchSytaxMessInboxBySoDienThoai(string nbPhone)
        {
            DataTable tableShowSyntaxMessInbox = HopThuDenDAO.getSyntaxMessInboxByNbPhone(nbPhone);

            tblSyntaxMess.DataSource = tableShowSyntaxMessInbox;
        }
Example #9
0
        public void showSyntaxMessDeletedInbox()
        {
            DataTable tableSyntaxMessDeletedInbox = HopThuDenDAO.getAllSyntaxMessDeletedInbox();

            tblSyntaxMessDeletedInbox.DataSource = tableSyntaxMessDeletedInbox;
        }