private void btnThemLoai_Click(object sender, EventArgs e) { try { Loai loaiThem = GetInputForm(); loaiThem.ThemLoai(); DialogResult = DialogResult.OK; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnThemLoai_Click(object sender, EventArgs e) { try { Loai loai = GetInputForm(); loai.ThemLoai(); LoadDanhSachLoai(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }