예제 #1
0
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TienDoCongViec frm = new TienDoCongViec();

            frm._Edit = false;
            frm.ShowDialog();
        }
예제 #2
0
        private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Guid guid = (Guid)grvTienDoCongViec.GetFocusedRowCellValue("Id");

            TienDoCongViec frm = new TienDoCongViec();

            frm._Edit  = true;
            frm.IdEdit = guid;
            frm.ShowDialog();
        }
예제 #3
0
        private void grvTienDoCongViec_DoubleClick(object sender, EventArgs e)
        {
            Guid guid = (Guid)grvTienDoCongViec.GetFocusedRowCellValue("Id");

            TienDoCongViec frm = new TienDoCongViec();

            frm._Edit  = true;
            frm.IdEdit = guid;
            frm.ShowDialog();
        }