예제 #1
0
        private void ThemNCC(object sender, EventArgs e)
        {
            frmThemNCC ncc = new frmThemNCC();

            ncc.ShowDialog();
            LoadData();
        }
예제 #2
0
        private void Sua(object sender, EventArgs e)
        {
            NhaCC nh = new NhaCC()
            {
                MaNCC = gvNhaCungCap.GetRowCellValue(gvNhaCungCap.FocusedRowHandle, "Mã").ToString(),
                Ten   = gvNhaCungCap.GetRowCellValue(gvNhaCungCap.FocusedRowHandle, "Tên").ToString(),
                MoTa  = gvNhaCungCap.GetRowCellValue(gvNhaCungCap.FocusedRowHandle, "Mô Tả").ToString(),
                MaKV  = gvNhaCungCap.GetRowCellValue(gvNhaCungCap.FocusedRowHandle, "Tên khu vực").ToString(),
            };

            frmThemNCC tnh = new frmThemNCC(nh);

            tnh.ShowDialog();
            LoadData();
        }