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

            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, "TenNSX");
            Object     diaChi     = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Quocgia");
            Object     website    = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "Website");
            Nhasanxuat nhasanxuat = new Nhasanxuat()
            {
                Id      = int.Parse(id.ToString()),
                TenNSX  = tenNCC.ToString(),
                Quocgia = diaChi.ToString(),
                Website = website.ToString(),
            };
            themsuanhasanxxuat themsuansx = new themsuanhasanxxuat(nhasanxuat);

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