Exemplo n.º 1
0
        private void Xoa_LichTrinh(object sender, EventArgs e)
        {
            LICH_CONG_TAC lichTrinh = lICH_CONG_TACBindingSource.Current as LICH_CONG_TAC;

            if (lichTrinh != null && ThongBao.XacNhan("Xác nhận xóa?", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                lICH_CONG_TACBindingSource.RemoveCurrent();
            }
        }
Exemplo n.º 2
0
        private void grvLichTrinh_InitNewRow(object sender, DevExpress.XtraGrid.Views.Grid.InitNewRowEventArgs e)
        {
            LICH_CONG_TAC lichTrinh = grvLichTrinh.GetRow(e.RowHandle) as LICH_CONG_TAC;

            lichTrinh.IdLichCongTac = SequenceId.LICH_TRINH_CONG_TAC();
        }