예제 #1
0
        private void them(object sender, EventArgs e)
        {
            frmThemDonViTinh thh = new frmThemDonViTinh();

            thh.ShowDialog();
            LoadData();
        }
예제 #2
0
        private void sua(object sender, EventArgs e)
        {
            DonVi dv = new DonVi()
            {
                Ma     = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Mã").ToString(),
                Ten    = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Tên").ToString(),
                GhiChu = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Ghi Chú").ToString()
            };

            frmThemDonViTinh thh = new frmThemDonViTinh(dv);

            thh.ShowDialog();
            LoadData();
        }