Пример #1
0
        private void Btnthem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            themsuakhohang themsuansx = new themsuakhohang();

            themsuansx.Show();
            themsuansx.khicapnhat += Themsuansx_khicapnhat;
        }
Пример #2
0
        private void Btnsua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Object id     = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Id");
            Object tenNCC = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Tenkhohang");
            Object diaChi = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Diachikho");

            Khohang khohang = new Khohang()
            {
                Id         = int.Parse(id.ToString()),
                Tenkhohang = tenNCC.ToString(),
                Diachikho  = diaChi.ToString(),
            };
            themsuakhohang themsuansx = new themsuakhohang(khohang);

            themsuansx.Show();
            themsuansx.khicapnhat += Themsuansx_khicapnhat;
        }