Exemplo n.º 1
0
        private void ThemNhomHang(object sender, EventArgs e)
        {
            frmThemNhomHang tnh = new frmThemNhomHang();

            tnh.ShowDialog();
            LoadData();
        }
Exemplo n.º 2
0
        private void SuaNhomHang(object sender, EventArgs e)
        {
            NhomHang nh = new NhomHang()
            {
                Ma  = grv_rootnhomhang.GetRowCellValue(grv_rootnhomhang.FocusedRowHandle, "Mã").ToString(),
                Ten = grv_rootnhomhang.GetRowCellValue(grv_rootnhomhang.FocusedRowHandle, "Tên").ToString()
            };

            frmThemNhomHang tnh = new frmThemNhomHang(nh);

            tnh.ShowDialog();
            LoadData();
        }