Пример #1
0
        private void Them_btn_Click(object sender, EventArgs e)
        {
            HoSoDTO hs = new HoSoDTO();

            hs.noToiDa = int.Parse(tienNo_txt.Text);
            hs.loai    = int.Parse(maLoaiDaiLy_txt.Text);
            bool kq = hsBus.them_loaiDaiLy(hs);

            if (kq == true)
            {
                MessageBox.Show("Thêm thành công");
            }
            else
            {
                MessageBox.Show("Thêm Thất Bại");
            }
            loaiDaiLyGrid.DataSource = hsBus.LoadLoaidaiLy();
        }
Пример #2
0
 private void loai_btn_Click(object sender, EventArgs e)
 {
     HoSoGrid.DataSource = hsBus.LoadLoaidaiLy();
 }
Пример #3
0
 public Rules_LoaiDaiLy()
 {
     InitializeComponent();
     hsBus = new HoSoBUS();
     loaiDaiLyGrid.DataSource = hsBus.LoadLoaidaiLy();
 }